Blimp: Change division to multiplication
This commit is contained in:
parent
dcafda890b
commit
8513837445
@ -132,8 +132,8 @@ bool RC_Channel_Blimp::do_aux_function(const AuxFuncTrigger &trigger)
|
||||
void Blimp::save_trim()
|
||||
{
|
||||
// save roll and pitch trim
|
||||
float roll_trim = ToRad((float)channel_right->get_control_in()/100.0f);
|
||||
float pitch_trim = ToRad((float)channel_front->get_control_in()/100.0f);
|
||||
float roll_trim = ToRad((float)channel_right->get_control_in()*0.01f);
|
||||
float pitch_trim = ToRad((float)channel_front->get_control_in()*0.01f);
|
||||
ahrs.add_trim(roll_trim, pitch_trim);
|
||||
LOGGER_WRITE_EVENT(LogEvent::SAVE_TRIM);
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Trim saved");
|
||||
|
Loading…
Reference in New Issue
Block a user