diff options
| author | Selene ToyKeeper | 2020-08-18 07:36:13 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-08-18 07:36:13 -0600 |
| commit | 47b6381ee0f91ed94ef4b15350145e044705c6e1 (patch) | |
| tree | ee8b25ec7cb6e64c4109762f943791413f1d3791 | |
| parent | fixed timing of auto-lock function, added SLEEP_TICKS_PER_MINUTE constants (diff) | |
| download | anduril-47b6381ee0f91ed94ef4b15350145e044705c6e1.tar.gz anduril-47b6381ee0f91ed94ef4b15350145e044705c6e1.tar.bz2 anduril-47b6381ee0f91ed94ef4b15350145e044705c6e1.zip | |
fixed auto-lock timing, this time based on measurements of a D4v2 instead of just data sheets and math
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-standby.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spaghetti-monster/fsm-standby.h b/spaghetti-monster/fsm-standby.h index b97ef7c..f310f16 100644 --- a/spaghetti-monster/fsm-standby.h +++ b/spaghetti-monster/fsm-standby.h @@ -48,27 +48,27 @@ volatile uint8_t go_to_standby = 0; #if (STANDBY_TICK_SPEED == 1) #define SLEEP_TICKS_PER_SECOND 31 -#define SLEEP_TICKS_PER_MINUTE 1875 +#define SLEEP_TICKS_PER_MINUTE 1730 #elif (STANDBY_TICK_SPEED == 2) #define SLEEP_TICKS_PER_SECOND 16 -#define SLEEP_TICKS_PER_MINUTE 938 +#define SLEEP_TICKS_PER_MINUTE 865 #elif (STANDBY_TICK_SPEED == 3) #define SLEEP_TICKS_PER_SECOND 8 -#define SLEEP_TICKS_PER_MINUTE 469 +#define SLEEP_TICKS_PER_MINUTE 432 #elif (STANDBY_TICK_SPEED == 4) #define SLEEP_TICKS_PER_SECOND 4 -#define SLEEP_TICKS_PER_MINUTE 234 +#define SLEEP_TICKS_PER_MINUTE 216 #elif (STANDBY_TICK_SPEED == 5) #define SLEEP_TICKS_PER_SECOND 2 -#define SLEEP_TICKS_PER_MINUTE 117 +#define SLEEP_TICKS_PER_MINUTE 108 #elif (STANDBY_TICK_SPEED == 6) #define SLEEP_TICKS_PER_SECOND 1 -#define SLEEP_TICKS_PER_MINUTE 59 +#define SLEEP_TICKS_PER_MINUTE 55 #endif #endif |
