Skip to content

Commit

Permalink
FIXS: issue on wheel position reset
Browse files Browse the repository at this point in the history
  • Loading branch information
gbr1 committed Jun 17, 2024
1 parent b9ef233 commit 9c33a23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Arduino_AlvikCarrier
version=1.0.0
version=1.0.1
author=Arduino, Giovanni di Dio Bruno, Lucio Rossi
maintainer=Arduino <[email protected]>
sentence=Library and firmware for Arduino Alvik Carrier board
Expand Down
2 changes: 1 addition & 1 deletion src/definitions/robot_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const float MOTION_FX_PERIOD = (1000U / MOTION_FX_FREQ);
// Library version
#define VERSION_BYTE_HIGH 1
#define VERSION_BYTE_MID 0
#define VERSION_BYTE_LOW 0
#define VERSION_BYTE_LOW 1



Expand Down
5 changes: 4 additions & 1 deletion src/motor_control/motor_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ bool MotorControl::isPositionControlEnabled(){
}

void MotorControl::resetPosition(const float p0){
position=p0;
disablePositionControl();
pos_pid->reset();
position = p0;
reference_position = p0;
}

float MotorControl::getPosition(){
Expand Down

0 comments on commit 9c33a23

Please sign in to comment.