Skip to content

Commit

Permalink
Initialize torque_offset (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Apr 26, 2019
1 parent ea8e2f7 commit 2c9d607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tfrog-motordriver/controlVelocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ void controlVelocity_init()
motor[i].ref.vel_buf = 0;
motor[i].ref.vel_buf_prev = 0;
motor[i].ref.vel_diff = 0;
motor[i].ref.torque_offset = 0;
motor[i].error_integ = 0;
motor[i].control_init = 1;
motor[i].servo_level = SERVO_LEVEL_STOP;
Expand Down

0 comments on commit 2c9d607

Please sign in to comment.