Browse Source

Copter: integrate heli_control_acro

master
Randy Mackay 11 years ago committed by Andrew Tridgell
parent
commit
ec989c720c
  1. 6
      ArduCopter/ArduCopter.pde
  2. 6
      ArduCopter/system.pde

6
ArduCopter/ArduCopter.pde

@ -1448,7 +1448,11 @@ static void update_flight_mode() @@ -1448,7 +1448,11 @@ static void update_flight_mode()
{
switch (control_mode) {
case ACRO:
acro_run();
#if FRAME_CONFIG == HELI_FRAME
heli_acro_run();
#else
acro_run();
#endif
break;
case STABILIZE:

6
ArduCopter/system.pde

@ -387,7 +387,11 @@ static bool set_mode(uint8_t mode) @@ -387,7 +387,11 @@ static bool set_mode(uint8_t mode)
switch(mode) {
case ACRO:
success = acro_init(ignore_checks);
#if FRAME_CONFIG == HELI_FRAME
success = heli_acro_init(ignore_checks);
#else
success = acro_init(ignore_checks);
#endif
break;
case STABILIZE:

Loading…
Cancel
Save