Добавление работы с другими регистрами устройства

This commit is contained in:
lulko 2025-02-28 11:33:01 +03:00
parent 119bc4f091
commit c44edc638d

View file

@ -223,6 +223,17 @@ void listen_can(){
}
break;
case MOTOR_ENABLED:
if(CAN_inMsg.buf[1] == 1){
motor.enable();
motor_control_inputs.motor_enabled = 1;
}
else{
motor.disable();
motor_control_inputs.motor_enabled = 0;
}
default:
break;
}