Skip to content

Commit

Permalink
perform zeroing after STLIB::start()
Browse files Browse the repository at this point in the history
  • Loading branch information
g0nz4I0 committed Feb 13, 2025
1 parent 7792bbd commit 7cb2bdf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Core/Src/Sensors/CurrentSensors.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "Sensors/CurrentSensors.hpp"
#define TIMES_TO_CREATE_ZERO 10000
CurrentSensors::CurrentSensors(Data_struct *data):data(data){
zeroing();
}
void CurrentSensors::zeroing(){
float new_offset_u_a = 0;
Expand Down
1 change: 1 addition & 0 deletions Core/Src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ int main(void) {
CurrentControl currentControl(&Data,&spaceVec);
StateMachinePCU stateMachinePCU(&Data,&three_phased_pwm,&sensors,&spaceVec,&currentControl);
STLIB::start("192.168.0.5");
sensors.currentSensors.zeroing();
Communication comms(&Data);
stateMachinePCU.start(&comms);

Expand Down

0 comments on commit 7cb2bdf

Please sign in to comment.