Skip to content

Commit 7f117b0

Browse files
author
Richard Unger
committed
explicitly init sensor_offset
1 parent 8eafe04 commit 7f117b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common/base_classes/FOCMotor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ FOCMotor::FOCMotor()
3636
//monitor_port
3737
monitor_port = nullptr;
3838
//sensor
39+
sensor_offset = 0.0f;
3940
sensor = nullptr;
4041
//current sensor
4142
current_sense = nullptr;

0 commit comments

Comments
 (0)