Browse Source

ArduCopter: allow RTL's yaw mode to be overridden with a #define in APM_Config.h

master
rmackay9 12 years ago committed by Andrew Tridgell
parent
commit
d8e3d5c10c
  1. 2
      ArduCopter/commands_logic.pde
  2. 4
      ArduCopter/config.h

2
ArduCopter/commands_logic.pde

@ -223,7 +223,7 @@ static void do_RTL(void) @@ -223,7 +223,7 @@ static void do_RTL(void)
// set roll, pitch and yaw modes
set_roll_pitch_mode(RTL_RP);
set_yaw_mode(YAW_LOOK_AT_HOME);
set_yaw_mode(RTL_YAW);
set_throttle_mode(RTL_THR);
// set navigation mode

4
ArduCopter/config.h

@ -618,6 +618,10 @@ @@ -618,6 +618,10 @@
// RTL Mode
#ifndef RTL_YAW
# define RTL_YAW YAW_LOOK_AT_NEXT_WP
#endif
#ifndef RTL_RP
# define RTL_RP ROLL_PITCH_AUTO
#endif

Loading…
Cancel
Save