diff options
| author | Selene ToyKeeper | 2021-08-23 04:24:08 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2021-08-23 04:24:08 -0600 |
| commit | dac03ab316ed47aff8e1e28d357935c7e4cbda29 (patch) | |
| tree | c43a2bcef0fedae36e935a73cc84c4155d17e688 /spaghetti-monster/fsm-ramping.h | |
| parent | made jump start level configurable at runtime, and made it activate in more p... (diff) | |
| download | anduril-dac03ab316ed47aff8e1e28d357935c7e4cbda29.tar.gz anduril-dac03ab316ed47aff8e1e28d357935c7e4cbda29.tar.bz2 anduril-dac03ab316ed47aff8e1e28d357935c7e4cbda29.zip | |
moved jump start into FSM so it'll be more universal and the app won't need special clauses
(also adjusted KR4 jump start levels a bit)
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index d1ef6bc..7a4fa3b 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -82,6 +82,16 @@ PROGMEM const PWM_DATATYPE pwm4_levels[] = { PWM4_LEVELS }; PROGMEM const PWM_DATATYPE pwm_tops[] = { PWM_TOPS }; #endif +#ifdef USE_JUMP_START +#ifndef JUMP_START_TIME +#define JUMP_START_TIME 8 // in ms, should be 4, 8, or 12 +#endif +#ifndef DEFAULT_JUMP_START_LEVEL +#define DEFAULT_JUMP_START_LEVEL 10 +#endif +uint8_t jump_start_level = DEFAULT_JUMP_START_LEVEL; +#endif + // default / example ramps #ifndef PWM1_LEVELS #if PWM_CHANNELS == 1 |
