Skip to content

Fixs #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 10, 2024
Merged

Fixs #21

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 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 All @@ -8,4 +8,4 @@ category=Robotics
url=https://github.com/arduino-libraries/Arduino_AlvikCarrier
architectures=stm32
includes=Arduino_AlvikCarrier.h
depends=Arduino_APDS9960, Arduino_MAX17332, STM32duino_LSM6DSO, STM32duino_MotionFX, STM32duino_VL53L7CX, AT42QT, ucPack
depends=Arduino_APDS9960, Arduino_MAX17332, STM32duino LSM6DSO, STM32duino MotionFX, STM32duino VL53L7CX, AT42QT, ucPack
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
Loading