Skip to content
Snippets Groups Projects
Commit 62e60979 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Removed the parameter from the emergency_stop() function.

parent b8f53788
No related branches found
No related tags found
1 merge request!1Sergi
......@@ -20,7 +20,7 @@ class CModelCarActuators: public CModelCarDriverBase
public:
CModelCarActuators(std::string name);
void send_command(double speed,double steering);
void emergency_stop(bool active);
void emergency_stop(void);
void enable_ultrasounds(void);
void disable_ultrasounds(void);
~CModelCarActuators(void);
......
......@@ -43,14 +43,9 @@ void CModelCarActuators::send_command(double speed,double steering)
this->send_request(ID_ARD_ACT_STEER_SERVO,1, &cmd);
}
void CModelCarActuators::emergency_stop(bool active)
void CModelCarActuators::emergency_stop(void)
{
uint8_t cmd;
if(active)
cmd=1;
else
cmd=0;
uint8_t cmd=1;
this->send_request(ID_ARD_ACT_EMERGENCY_STOP,1,&cmd);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment