#ifndef APP_CAR_MOVE_H
#define APP_CAR_MOVE_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

void car_move(uint8_t ctrl, uint16_t speed[2]);

/*
 * Network control interface (Terminal -> Server -> ESP8266 -> STM32).
 * move_cmd encoding follows the PC terminal:
 *   0x00 stop, 0x11 forward, 0x22 backward, 0x33 left, 0x44 right
 */
void car_move_cmd(uint8_t move_cmd);

#ifdef __cplusplus
}
#endif

#endif /* APP_CAR_MOVE_H */
