Sub: send messages to GCS when toggling roll/pitch control
This commit is contained in:
parent
ba415c99fe
commit
824816ddcb
@ -561,6 +561,12 @@ void Sub::handle_jsbutton_press(uint8_t _button, bool shift, bool held)
|
||||
case JSButton::button_function_t::k_roll_pitch_toggle:
|
||||
if (!held) {
|
||||
roll_pitch_flag = !roll_pitch_flag;
|
||||
if (roll_pitch_flag) {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "#Attitude Control");
|
||||
}
|
||||
else {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "#Movement Control");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user