Sub: Change info print for gain changes.

This commit is contained in:
Rustom Jehangir 2016-08-03 15:11:22 -07:00 committed by Andrew Tridgell
parent f19442389e
commit f6b0d47e8e
1 changed files with 2 additions and 2 deletions

View File

@ -197,11 +197,11 @@ void Sub::handle_jsbutton_press(uint8_t button, bool shift) {
break;
case JSButton::button_function_t::k_gain_inc:
gain = constrain_float(gain + (maxGain-minGain)/(numGainSettings-1), minGain, maxGain);
gcs_send_text_fmt(MAV_SEVERITY_INFO,"#Gain: %2.0f%%",gain*100);
gcs_send_text_fmt(MAV_SEVERITY_INFO,"#Gain is %2.0f%%",gain*100);
break;
case JSButton::button_function_t::k_gain_dec:
gain = constrain_float(gain - (maxGain-minGain)/(numGainSettings-1), minGain, maxGain);
gcs_send_text_fmt(MAV_SEVERITY_INFO,"#Gain: %2.0f%%",gain*100);
gcs_send_text_fmt(MAV_SEVERITY_INFO,"#Gain is %2.0f%%",gain*100);
break;
case JSButton::button_function_t::k_trim_roll_inc:
rollTrim = constrain_float(rollTrim+10,-200,200);