From 7750978f1831ece865ee079270d8b508b02fb74f Mon Sep 17 00:00:00 2001 From: Klagarge Date: Tue, 5 Sep 2023 20:08:14 +0200 Subject: [PATCH] add can modifier for ramp --- 306-controller_interface.X/app/can_message.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/306-controller_interface.X/app/can_message.c b/306-controller_interface.X/app/can_message.c index 53e18c3..64e9cc0 100644 --- a/306-controller_interface.X/app/can_message.c +++ b/306-controller_interface.X/app/can_message.c @@ -176,6 +176,14 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, bool rtr, uint32_t data){ 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;