Skip to content

Commit

Permalink
fix battery is charging, 1.1.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gbr1 committed Oct 16, 2024
1 parent b4e7353 commit 430f130
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.4
version=1.1.0
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/Arduino_AlvikCarrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ int Arduino_AlvikCarrier::beginBMS(){
void Arduino_AlvikCarrier::updateBMS(){
voltage = bms->readVCell();
state_of_charge = bms->readSoc();
if (bms->isCharging()){
if (bms->readCurrent()>=0){
charging = 1.0;
}
else{
Expand Down
4 changes: 2 additions & 2 deletions src/definitions/robot_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ 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 4
#define VERSION_BYTE_MID 1
#define VERSION_BYTE_LOW 0

// Battery stats
#define BATTERY_ALERT_MINIMUM_CHARGE 20.0
Expand Down

0 comments on commit 430f130

Please sign in to comment.