add can modifier for ramp

This commit is contained in:
Rémi Heredero 2023-09-05 20:08:14 +02:00
parent 44d4d1210c
commit 7750978f18

View File

@ -176,6 +176,14 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, bool rtr, uint32_t data){
CM_SUPPLY_SETUP(NULL); CM_SUPPLY_SETUP(NULL);
} }
if(idMsg == 0x9) { // CONTROL_PARAM_MAX_CHANGES
// maxChangeSteering maxChangeDrive - -
KART_CST.CONTROL_PARAM_MAX_CHANGE_STEERING = incomeData.separate.byte0;
KART_CST.CONTROL_PARAM_MAX_CHANGE_DRIVE = incomeData.separate.byte1;
MEM_write_1_byte(MEMADD_CONTROL_PARAM_MAX_CHANGE_STEERING, KART_CST.CONTROL_PARAM_MAX_CHANGE_STEERING);
MEM_write_1_byte(MEMADD_CONTROL_PARAM_MAX_CHANGE_DRIVE, KART_CST.CONTROL_PARAM_MAX_CHANGE_DRIVE);
}
break; break;