Skip to content

Commit 430f130

Browse files
committed
fix battery is charging, 1.1.0 version
1 parent b4e7353 commit 430f130

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_AlvikCarrier
2-
version=1.0.4
2+
version=1.1.0
33
author=Arduino, Giovanni di Dio Bruno, Lucio Rossi
44
maintainer=Arduino <[email protected]>
55
sentence=Library and firmware for Arduino Alvik Carrier board

src/Arduino_AlvikCarrier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ int Arduino_AlvikCarrier::beginBMS(){
277277
void Arduino_AlvikCarrier::updateBMS(){
278278
voltage = bms->readVCell();
279279
state_of_charge = bms->readSoc();
280-
if (bms->isCharging()){
280+
if (bms->readCurrent()>=0){
281281
charging = 1.0;
282282
}
283283
else{

src/definitions/robot_definitions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const float MOTION_FX_PERIOD = (1000U / MOTION_FX_FREQ);
9292

9393
// Library version
9494
#define VERSION_BYTE_HIGH 1
95-
#define VERSION_BYTE_MID 0
96-
#define VERSION_BYTE_LOW 4
95+
#define VERSION_BYTE_MID 1
96+
#define VERSION_BYTE_LOW 0
9797

9898
// Battery stats
9999
#define BATTERY_ALERT_MINIMUM_CHARGE 20.0

0 commit comments

Comments
 (0)