From 8513837445982d12629fa7d69bd2f8507bd965c5 Mon Sep 17 00:00:00 2001 From: muramura Date: Sat, 20 Apr 2024 19:14:26 +0900 Subject: [PATCH] Blimp: Change division to multiplication --- Blimp/RC_Channel_Blimp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Blimp/RC_Channel_Blimp.cpp b/Blimp/RC_Channel_Blimp.cpp index 0bf99c36f4..5db884f88a 100644 --- a/Blimp/RC_Channel_Blimp.cpp +++ b/Blimp/RC_Channel_Blimp.cpp @@ -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");