From cc6a8fc39ae2d71407d9f230bf41e9c15940e130 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Thu, 7 Sep 2023 09:10:45 +0200 Subject: [PATCH] send alive before 0x604 --- 306-controller_interface.X/app/can_message.c | 2 -- 306-controller_interface.X/app/factory/factory.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/306-controller_interface.X/app/can_message.c b/306-controller_interface.X/app/can_message.c index f4ea129..789ec16 100644 --- a/306-controller_interface.X/app/can_message.c +++ b/306-controller_interface.X/app/can_message.c @@ -302,8 +302,6 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, bool rtr, uint32_t data){ DRIVE_startBehaviour(drive()); STEERING_startBehaviour(steering()); - ALIVE_startBehaviourSender(ALcontroller()); - ALIVE_startBehaviourChecker(ALjoy()); ALIVE_emitBorn(ALjoy(), 100, 0); ALIVE_emitReady(ALjoy(), 200, 0); diff --git a/306-controller_interface.X/app/factory/factory.c b/306-controller_interface.X/app/factory/factory.c index 4e92ebb..bc0d6db 100644 --- a/306-controller_interface.X/app/factory/factory.c +++ b/306-controller_interface.X/app/factory/factory.c @@ -72,12 +72,12 @@ void Factory_build() { //start all state machines void Factory_start() { CAN_startBehaviour(); + ALIVE_startBehaviourSender(ALcontroller()); + /* DRIVE_startBehaviour(drive()); STEERING_startBehaviour(steering()); - ALIVE_startBehaviourSender(ALcontroller()); - ALIVE_startBehaviourChecker(ALjoy()); ALIVE_emitBorn(ALjoy(), 100, 0); ALIVE_emitReady(ALjoy(), 200, 0);