From 57b19e59d963fe2e76dc3951b0b9e912d6fcbe97 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Fri, 1 Sep 2023 17:24:32 +0200 Subject: [PATCH] send params --- 306-controller_interface.X/app/can_message.c | 14 ++- .../nbproject/configurations.xml | 97 +++++++++++++++++++ 2 files changed, 107 insertions(+), 4 deletions(-) diff --git a/306-controller_interface.X/app/can_message.c b/306-controller_interface.X/app/can_message.c index 2e53ae4..72ff705 100644 --- a/306-controller_interface.X/app/can_message.c +++ b/306-controller_interface.X/app/can_message.c @@ -93,8 +93,11 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){ KART_CST.STEERING_ALIVE_TIME = incomeData.separate.byte1; MEM_write_1_byte(MEMADD_DISPLAY_ALIVE_TIME, KART_CST.DISPLAY_ALIVE_TIME); MEM_write_1_byte(MEMADD_STEERING_ALIVE_TIME, KART_CST.STEERING_ALIVE_TIME); + // TODO set alive times - // TODO send params + // start alives + CM_DISPLAY_SETUP(NULL); + CM_STEERING_SETUP(NULL); } @@ -123,9 +126,10 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){ MEM_write_1_byte(MEMADD_DRIVE_ALIVE_TIME, KART_CST.DRIVE_ALIVE_TIME); MEM_write_1_byte(MEMADD_DRIVE_SPEED_TIME, KART_CST.DRIVE_SPEED_TIME); MEM_write_1_byte(MEMADD_DRIVE_STOP_TIME, KART_CST.DRIVE_STOP_TIME); - ALIVE_setAliveTime(drive()->myChecker, KART_CST.DRIVE_ALIVE_TIME); + + ALIVE_setAliveTime(&drive()->myChecker, KART_CST.DRIVE_ALIVE_TIME); + ALIVE_emitStart(&drive()->myChecker, 0, 0); CM_DRIVE_SETUP(NULL); - // TODO send params } @@ -139,8 +143,10 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){ MEM_write_1_byte(MEMADD_BATTERY_CURRENT_TIME, KART_CST.BATTERY_CURRENT_TIME); MEM_write_1_byte(MEMADD_BATTERY_ENERGY_TIME, KART_CST.BATTERY_ENERGY_TIME); MEM_write_1_byte(MEMADD_BATTERY_ALIVE_TIME, KART_CST.BATTERY_ALIVE_TIME); + // TODO set alive time - // TODO send params + // TODO start alive + CM_SUPPLY_SETUP(NULL); } diff --git a/306-controller_interface.X/nbproject/configurations.xml b/306-controller_interface.X/nbproject/configurations.xml index ac746da..2d248e4 100644 --- a/306-controller_interface.X/nbproject/configurations.xml +++ b/306-controller_interface.X/nbproject/configurations.xml @@ -210,18 +210,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +