add Steering

This commit is contained in:
2023-09-04 15:20:54 +02:00
parent 473d71ff6b
commit f45fd4ae7e
9 changed files with 457 additions and 19 deletions

View File

@@ -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;