Skip to content

Commit

Permalink
Merge pull request #21 from arduino-libraries/devel
Browse files Browse the repository at this point in the history
Fixs
  • Loading branch information
gbr1 authored Jul 10, 2024
2 parents 60f1751 + 03d4e3e commit 1dc4029
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
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

0 comments on commit 1dc4029

Please sign in to comment.