clean
This commit is contained in:
parent
d94fcb927d
commit
ae9252cccb
@ -21,8 +21,6 @@ typedef union {
|
||||
uint32_t full;
|
||||
} BYTES_4;
|
||||
|
||||
//BYTES_4 foobar;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint8_t byte0;
|
||||
@ -41,7 +39,6 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){
|
||||
revertData.separate.byte3 = incomeData.separate.byte0;
|
||||
|
||||
switch(idSender){
|
||||
//foobar.full = data;
|
||||
|
||||
/*********************
|
||||
* BROADCAST / DEBUG *
|
||||
@ -168,8 +165,8 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, uint32_t data){
|
||||
KART_CST.JOYSTICK_ALIVE_TIME = MEM_read_1_byte(MEMADD_JOYSTICK_ALIVE_TIME);
|
||||
ALIVE_setAliveTime(ALjoy(), KART_CST.JOYSTICK_ALIVE_TIME);
|
||||
ALIVE_emitResurrect(ALjoy(), 0, 0);
|
||||
ALIVE_emitBorn(ALjoy(), 100, 0);
|
||||
ALIVE_emitReady(ALjoy(), 200, 0);
|
||||
ALIVE_emitBorn(ALjoy(), 0, 0);
|
||||
ALIVE_emitReady(ALjoy(), 0, 0);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -106,12 +106,13 @@ void Factory_build() {
|
||||
void Factory_start() {
|
||||
CAN_startBehaviour();
|
||||
|
||||
//ALIVE_startBehaviourSender(ALcontroller());
|
||||
//ALIVE_startBehaviourChecker(ALjoy());
|
||||
DRIVE_startBehaviour(drive());
|
||||
|
||||
ALIVE_startBehaviourSender(ALcontroller());
|
||||
ALIVE_startBehaviourChecker(ALjoy());
|
||||
ALIVE_emitBorn(ALjoy(), 100, 0);
|
||||
ALIVE_emitReady(ALjoy(), 200, 0);
|
||||
|
||||
DRIVE_startBehaviour(drive());
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user