Browse Source

Copter: make it possible to change board orientation at runtime

master
Andrew Tridgell 12 years ago
parent
commit
595d3c694a
  1. 6
      ArduCopter/ArduCopter.pde

6
ArduCopter/ArduCopter.pde

@ -1293,6 +1293,12 @@ static void super_slow_loop() @@ -1293,6 +1293,12 @@ static void super_slow_loop()
// auto disarm checks
auto_disarm_check();
// make it possible to change orientation at runtime - useful
// during initial config
if (!motors.armed()) {
ahrs.set_orientation();
}
// agmatthews - USERHOOKS
#ifdef USERHOOK_SUPERSLOWLOOP
USERHOOK_SUPERSLOWLOOP

Loading…
Cancel
Save