Fjernstyring av Legorobot - NTNU
Fjernstyring av Legorobot - NTNU
Fjernstyring av Legorobot - NTNU
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
13 Vedlegg<br />
13.1 Protokoller<br />
Funksjon Byte 1 Byte 2<br />
Hex Char Hex Char<br />
Ping robot 0x6F o None None<br />
SetRadarAngle 0x72 r 0x00-0xB4 [0-180]<br />
SetRobotHeading 0x68 h 0x00-0xB4 [0-180]<br />
SetDeltaDistance 0x64 d 0x00-0xFF [0-255]<br />
GetLeftTick 0x67 g 0x6C l<br />
GetRightTick 0x67 g 0x72 r<br />
GetRobotPosition 0x67 g 0x70 p<br />
GetIR 0x67 g 0x69 i<br />
RobotForward 0x6D m 0x69 f<br />
RobotStop 0x6D m 0x73 s<br />
RobotLeft 0x6D m 0x61 a<br />
RobotRight 0x6D m 0x62 B<br />
Figur 15: Gammel protokoll (kommandosett)<br />
54