Added hbrake timeout and adjustable brake force

This commit is contained in:
2024-04-12 17:40:00 +03:00
parent 82838c25cb
commit e7797e8d1c
3 changed files with 16 additions and 3 deletions

View File

@@ -14,6 +14,9 @@
static const uint16_t dsp_lock_bmode = 1000;
static const uint16_t dsp_lock_force = 50;
static const uint16_t cfg_max_hbrake_time = 1000;
static const uint8_t cfg_brake_force = 100;
/**** Private variables ****/
static logic::CfgMemory cfg_mem = logic::CfgMemory();
@@ -35,6 +38,8 @@ int main(void)
button_force.force = cfg_mem.btn_force;
dccd_force.brake_mode = cfg_mem.bmode;
dccd_force.max_hbrake_time = cfg_max_hbrake_time;
dccd_force.brake_force = cfg_brake_force;
// Super loop
while(1)