Добавление работы с другими регистрами устройства
This commit is contained in:
parent
119bc4f091
commit
c44edc638d
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue