fix motors.cpp and add functions to header file

This commit is contained in:
Angel Garcia 2019-06-03 18:59:12 +02:00
parent c054dbed85
commit 495b18fc2f
2 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,7 @@ void motor_process(char*msg){
case 'R':
break;
default:
eprintf("[motors] mode not valid (%c)\n", *servo_mode);
eprintf("[motors] mode not valid (%c)\n", servo_mode);
strcpy(msg, "ESC_MODE_NOK");
return;
}

View File

@ -4,5 +4,7 @@
#include "servos.h"
void motor_process(char*msg);
void all_motors_stop();
void all_motors_zero();
void all_motors_start();
#endif // __MOTORS_H__