Skip to content

Commit

Permalink
change uint to unsigned int for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcells authored Oct 9, 2024
1 parent 58ec978 commit 65eff47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/base_classes/FOCMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 65eff47

Please sign in to comment.