Skip to content

Commit 65eff47

Browse files
authored
change uint to unsigned int for unit tests
1 parent 58ec978 commit 65eff47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/base_classes/FOCMotor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ int FOCMotor::characteriseMotor(float voltage, float correction_factor=1.0f){
160160
float Lq = 0;
161161
float d_electrical_angle = 0;
162162

163-
uint iterations = 40; // how often the algorithm gets repeated.
164-
uint cycles = 3; // averaged measurements for each iteration
165-
uint risetime_us = 200; // initially short for worst case scenario with low inductance
166-
uint settle_us = 100000; // initially long for worst case scenario with high inductance
163+
unsigned int iterations = 40; // how often the algorithm gets repeated.
164+
unsigned int cycles = 3; // averaged measurements for each iteration
165+
unsigned int risetime_us = 200; // initially short for worst case scenario with low inductance
166+
unsigned int settle_us = 100000; // initially long for worst case scenario with high inductance
167167

168168
// Pre-rotate the angle to the q-axis (only useful with sensor, else no harm in doing it)
169169
current_electric_angle += 0.5f * _PI;

0 commit comments

Comments
 (0)