Skip to content

Commit

Permalink
1.0.4 - battery alert
Browse files Browse the repository at this point in the history
  • Loading branch information
gbr1 committed Oct 10, 2024
1 parent 5a938c7 commit 721dc82
Show file tree
Hide file tree
Showing 3 changed files with 6 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.3
version=1.0.4
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: 2 additions & 0 deletions src/Arduino_AlvikCarrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,10 +1017,12 @@ void Arduino_AlvikCarrier::updateBehaviours(){
battery_alert_time = millis();
if (battery_alert_wave==400){
setLeds(COLOR_RED);
setLedBuiltin(HIGH);
battery_alert_wave=100;
}
else{
setLeds(COLOR_BLACK);
setLedBuiltin(LOW);
battery_alert_wave=400;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/definitions/robot_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ 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 3
#define VERSION_BYTE_LOW 4

// Battery stats
#define BATTERY_ALERT_MINIMUM_CHARGE 96.0
#define BATTERY_ALERT_STOP_CHARGE 94.0
#define BATTERY_ALERT_MINIMUM_CHARGE 20.0
#define BATTERY_ALERT_STOP_CHARGE 10.0



Expand Down

0 comments on commit 721dc82

Please sign in to comment.