Skip to content

Commit 721dc82

Browse files
committed
1.0.4 - battery alert
1 parent 5a938c7 commit 721dc82

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-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.3
2+
version=1.0.4
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,10 +1017,12 @@ void Arduino_AlvikCarrier::updateBehaviours(){
10171017
battery_alert_time = millis();
10181018
if (battery_alert_wave==400){
10191019
setLeds(COLOR_RED);
1020+
setLedBuiltin(HIGH);
10201021
battery_alert_wave=100;
10211022
}
10221023
else{
10231024
setLeds(COLOR_BLACK);
1025+
setLedBuiltin(LOW);
10241026
battery_alert_wave=400;
10251027
}
10261028
}

src/definitions/robot_definitions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ const float MOTION_FX_PERIOD = (1000U / MOTION_FX_FREQ);
9393
// Library version
9494
#define VERSION_BYTE_HIGH 1
9595
#define VERSION_BYTE_MID 0
96-
#define VERSION_BYTE_LOW 3
96+
#define VERSION_BYTE_LOW 4
9797

9898
// Battery stats
99-
#define BATTERY_ALERT_MINIMUM_CHARGE 96.0
100-
#define BATTERY_ALERT_STOP_CHARGE 94.0
99+
#define BATTERY_ALERT_MINIMUM_CHARGE 20.0
100+
#define BATTERY_ALERT_STOP_CHARGE 10.0
101101

102102

103103

0 commit comments

Comments
 (0)