Copter: rename ROLL_PITCH_LOITER
new name ROLL_PITCH_LOITER_INAV makes it more clear that it should only be used with the new inertial nav loiter controllers
This commit is contained in:
parent
d7409b6a25
commit
0056bfadd7
@ -1601,7 +1601,7 @@ bool set_roll_pitch_mode(uint8_t new_roll_pitch_mode)
|
||||
roll_pitch_initialised = true;
|
||||
break;
|
||||
|
||||
case ROLL_PITCH_LOITER:
|
||||
case ROLL_PITCH_LOITER_INAV:
|
||||
// require gps lock
|
||||
if( ap.home_is_set ) {
|
||||
roll_pitch_initialised = true;
|
||||
@ -1712,7 +1712,7 @@ void update_roll_pitch_mode(void)
|
||||
roll_pitch_toy();
|
||||
break;
|
||||
|
||||
case ROLL_PITCH_LOITER:
|
||||
case ROLL_PITCH_LOITER_INAV:
|
||||
// apply SIMPLE mode transform
|
||||
if(ap.simple_mode && ap_system.new_radio_frame) {
|
||||
update_simple_mode();
|
||||
|
@ -30,7 +30,7 @@
|
||||
#define ROLL_PITCH_AUTO 2
|
||||
#define ROLL_PITCH_STABLE_OF 3
|
||||
#define ROLL_PITCH_TOY 4 // THOR This is the Roll and Pitch mode
|
||||
#define ROLL_PITCH_LOITER 5 // pilot inputs the desired horizontal velocities
|
||||
#define ROLL_PITCH_LOITER_INAV 5 // pilot inputs the desired horizontal velocities
|
||||
|
||||
#define THROTTLE_MANUAL 0 // manual throttle mode - pilot input goes directly to motors
|
||||
#define THROTTLE_MANUAL_TILT_COMPENSATED 1 // mostly manual throttle but with some tilt compensation
|
||||
|
Loading…
Reference in New Issue
Block a user