Remote Control - dresber/PowerWheelController GitHub Wiki
Remote Protocol
Each command has to be terminated with \r\n. If a command does have a value it is seprated via a whitespace and directly send.
Remote -> Car
command |
description |
em_stop |
Emergency Stop on car |
em_res |
Reset an Emerg on car |
rem_off |
Disable remote control |
rem_mon |
Enable remote monitoring (car can be stopped) |
rem_con |
Enable remote control (full control) |
wdg_trig |
Watchdog trigger |
em_stop |
Emergency Stop on car |
light_tog |
Will toggle the state of the light |
alarm_tog |
Will toggle the state of the alarm light |
spd_plus |
Increase speed level |
spd_minus |
Reduce speed level |
mov_for |
drive forward |
mov_off |
drive off |
mov_back |
drive backward |
steer_right |
steer to the right |
steer_off |
steer off |
steer_left |
steer to the left |
get_dat |
pull command that actual data are sent to remote |
Car -> Remote
command |
description |
act_spd_set |
actual speed set (gear) 1-4 |
act_spd |
actual pwm value of motor |
act_pwr |
power level in % |
al_light_sta |
alarm light state ON=1/OFF=0 |
light_sta |
light state ON=1/OFF=0 |
dist_f1 |
actual distance of front sensor 1 in cm |
dist_f2 |
actual distance of front sensor 2 in cm |
dist_b |
actual distance of back sensor in cm |