add Steering
This commit is contained in:
@@ -232,9 +232,19 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, bool rtr, uint32_t data){
|
||||
|
||||
}
|
||||
|
||||
if(idMsg == 0x3) { // STEERING_READY
|
||||
// - - - -
|
||||
|
||||
}
|
||||
|
||||
if(idMsg == 0xF) { // STEERING_ALIVE
|
||||
// statusH statusL - -
|
||||
// TODO steering say ALIVE with his status
|
||||
ALIVE_ISALIVE(&steering()->myChecker);
|
||||
if(steering()->myChecker.state == STST_DEAD) {
|
||||
KART_CST.STEERING_ALIVE_TIME = MEM_read_1_byte(MEMADD_STEERING_ALIVE_TIME);
|
||||
ALIVE_emitResurrect(&steering()->myChecker, 0, 0);
|
||||
ALIVE_emitBorn(&steering()->myChecker, 0, 0);
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user