add boost and check battery

This commit is contained in:
2023-09-13 12:58:27 +02:00
parent 09fb1d10da
commit 73b5594786
6 changed files with 20 additions and 23 deletions

View File

@@ -305,6 +305,10 @@ void CM_processIncome(uint8_t idSender, uint8_t idMsg, bool rtr, uint32_t data){
* SUPPLY *
**********/
case 6:
if(idMsg == 0x1) {
eKart.batteryVoltage = data.full;
}
if(idMsg == 0x4) {
DRIVE_startBehaviour(drive());
STEERING_startBehaviour(steering());