From 65eff47c5126a814ba5731fbbbf87a1dab092910 Mon Sep 17 00:00:00 2001 From: mcells <33664753+mcells@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:34:01 +0200 Subject: [PATCH] change uint to unsigned int for unit tests --- src/common/base_classes/FOCMotor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/base_classes/FOCMotor.cpp b/src/common/base_classes/FOCMotor.cpp index 06dfe63a..090034ce 100644 --- a/src/common/base_classes/FOCMotor.cpp +++ b/src/common/base_classes/FOCMotor.cpp @@ -160,10 +160,10 @@ int FOCMotor::characteriseMotor(float voltage, float correction_factor=1.0f){ float Lq = 0; float d_electrical_angle = 0; - uint iterations = 40; // how often the algorithm gets repeated. - uint cycles = 3; // averaged measurements for each iteration - uint risetime_us = 200; // initially short for worst case scenario with low inductance - uint settle_us = 100000; // initially long for worst case scenario with high inductance + unsigned int iterations = 40; // how often the algorithm gets repeated. + unsigned int cycles = 3; // averaged measurements for each iteration + unsigned int risetime_us = 200; // initially short for worst case scenario with low inductance + unsigned int settle_us = 100000; // initially long for worst case scenario with high inductance // Pre-rotate the angle to the q-axis (only useful with sensor, else no harm in doing it) current_electric_angle += 0.5f * _PI;