/********************************************************************** Copyright: 2016-2019 ROS小课堂 www.corvin.cn Author: corvin Description: Define single-letter commands that will be sent by the PC over the serial link. History: 20181128: initial this comment. 20181130: 新增了d,e命令,分别可以禁用、使能指定舵机,v获取代码版本号。 20181203: 删除了d命令,使用e命令的第2个参数来表示使能或禁用指定舵机。 20181204: 新增用户获取所有舵机使能状态命令s和所有舵机当前角度p。 */ #ifndef _COMMANDS_H_ #define _COMMANDS_H_ #define GET_CONNECT_BAUDRATE 'b' #define SET_ONE_SERVO_ENABLE 'e' #define SET_ONE_SERVO_POS 'w' #define GET_ONE_SERVO_POS 'r' #define GET_ALL_SERVOS_POS 'p' #define GET_ALL_SERVOS_ENABLE 's' #define GET_FIRMWARE_VERSION 'v' #endif