Skip to content
Snippets Groups Projects
Commit 07d93c16 authored by dawehr's avatar dawehr
Browse files

Removed requirement to receive "begin update" packet from ground station before flying.

parent c83e8061
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,7 @@ int protection_loops(modular_structs_t *structs) ...@@ -24,8 +24,7 @@ int protection_loops(modular_structs_t *structs)
// wait until throttle is low and the gear switch is engaged (so you don't immediately break out of the main loop below) // wait until throttle is low and the gear switch is engaged (so you don't immediately break out of the main loop below)
// also wait for the flight mode to be set to manual // also wait for the flight mode to be set to manual
while(rc_commands[THROTTLE] > 125000 || read_kill(rc_commands[GEAR]) || !read_flap(rc_commands[FLAP]) || while(rc_commands[THROTTLE] > 125000 || read_kill(rc_commands[GEAR]) || !read_flap(rc_commands[FLAP])) {
!structs->user_input_struct.receivedBeginUpdate) {
process_received(structs); process_received(structs);
read_rec_all(rc_commands); read_rec_all(rc_commands);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment