From 06941fcf5b0dfcaaa545c42c1f766108f304b696 Mon Sep 17 00:00:00 2001 From: Marius Eggert Date: Thu, 20 Oct 2022 11:08:21 +0200 Subject: [PATCH] fixed int32_t to double warnings --- mission/controller/acs/ActuatorCmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mission/controller/acs/ActuatorCmd.cpp b/mission/controller/acs/ActuatorCmd.cpp index 920989ed..0dba2016 100644 --- a/mission/controller/acs/ActuatorCmd.cpp +++ b/mission/controller/acs/ActuatorCmd.cpp @@ -45,7 +45,7 @@ void ActuatorCmd::cmdSpeedToRws(const int32_t *speedRw0, const int32_t *speedRw1 } // Calculating the commanded speed in RPM for every reaction wheel - double speedRws[4] = {*speedRw0, *speedRw1, *speedRw2, *speedRw3}; + double speedRws[4] = {(double)*speedRw0, (double)*speedRw1, (double)*speedRw2, (double)*speedRw3}; double deltaSpeed[4] = {0, 0, 0, 0}; double commandTime = acsParameters.onBoardParams.sampleTime, inertiaWheel = acsParameters.rwHandlingParameters.inertiaWheel;