mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
Copter: flip mode format fix
This commit is contained in:
parent
0ba105f649
commit
25961b6d13
@ -75,11 +75,11 @@ bool Copter::ModeFlip::init(bool ignore_checks)
|
||||
// choose direction based on pilot's roll and pitch sticks
|
||||
if (channel_pitch->get_control_in() > 300) {
|
||||
flip_pitch_dir = FLIP_PITCH_BACK;
|
||||
}else if(channel_pitch->get_control_in() < -300) {
|
||||
} else if (channel_pitch->get_control_in() < -300) {
|
||||
flip_pitch_dir = FLIP_PITCH_FORWARD;
|
||||
}else if (channel_roll->get_control_in() >= 0) {
|
||||
} else if (channel_roll->get_control_in() >= 0) {
|
||||
flip_roll_dir = FLIP_ROLL_RIGHT;
|
||||
}else{
|
||||
} else {
|
||||
flip_roll_dir = FLIP_ROLL_LEFT;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user