Keywish Hummer-Bot-2.0 Instruction Manual page 91

Table of Contents

Advertisement

typedef
{
E_BATTERY
E_LED
E_BUZZER
E_INFO
E_ROBOT_CONTROL
E_ROBOT_CONTROL_SPEED
E_TEMPERATURE
E_IR_TRACKING
E_ULTRASONIC
E_VERSION
E_UPGRADE
}E_CONTOROL_FUNC
The data means the specific control value of a car, such as speed, angle.
"Checksum" is the result of different or calculated data bits of the control instruction.
"Protocol end code " is the end part of the data bag when receiving this data ,it means that the data pack has
been sent, and is ready for receiving the next data pack, here we specified it as 0x55.
For example, a complete packet can be such as "AA 070101065000 5F55", in which:
"07" is Transmission Data Length 7 bytes.
"06" is the "function code",The 06 here refers to the transmission speed.
"50 (or 0050)" is the controlling data, 0x50 in hexadecimal is 80 when converted to binary, which means the
speed value is 80. If the data is 05, it means the controlling direction, that is 80 degrees (forward).
"005F" is the check sum, that is, 0x07+0x01+0x01+0x06+0x50 = 0x5F.
"55" is the tail of the protocol, indicating the end of data transmission.
enum
= 1,
= 2,
= 3,
= 4,
= 5,
= 7,
= 8,
= 9,
= 10,
= 11,
;
= 6,
88

Advertisement

Table of Contents
loading

Related Products for Keywish Hummer-Bot-2.0

Table of Contents