by ries » Thu Feb 21, 2008 8:20 pm
by ries
Thu Feb 21, 2008 8:20 pm
Hi,
Currently I have a program written in Labview to control the motions in the RCB-3J. Hopefully this week i get a CMUCAM3 camera with a ARM7 so I can write it in C.
I want to program that ARM7 to control the RCB-3J (KHR-1HV) to find, walk, track a football autonomous.
What I used for this:
See page 8, 9 and 19 (the commands i use)
Open a serial connection to the RCB-3J
Send 1 byte: 0x0D
Receive 1 byte: 0x0D (you know that the RCB-3J is there)
Send 4 bytes:
CMD = 0xF4 (see page 19)
OPT = 0x05 (used a serial monitor for this code, page 9 explains it)
NUM = Motion number (see page 19)
SUM = (CMD + OPT + NUM) & 0xFF; (used a serial monitor for this)
Receive 1 byte: 0x06
Close the serial connection to the RCB-3J
The checksum isn't always 0xFF, there are commands that don't use bit 7!
And the time to receive 0x0D and send a command should be minimal, there is a time-out in the RCB3J.
Hi,
Currently I have a program written in Labview to control the motions in the RCB-3J. Hopefully this week i get a CMUCAM3 camera with a ARM7 so I can write it in C.
I want to program that ARM7 to control the RCB-3J (KHR-1HV) to find, walk, track a football autonomous.
What I used for this:
See page 8, 9 and 19 (the commands i use)
Open a serial connection to the RCB-3J
Send 1 byte: 0x0D
Receive 1 byte: 0x0D (you know that the RCB-3J is there)
Send 4 bytes:
CMD = 0xF4 (see page 19)
OPT = 0x05 (used a serial monitor for this code, page 9 explains it)
NUM = Motion number (see page 19)
SUM = (CMD + OPT + NUM) & 0xFF; (used a serial monitor for this)
Receive 1 byte: 0x06
Close the serial connection to the RCB-3J
The checksum isn't always 0xFF, there are commands that don't use bit 7!
And the time to receive 0x0D and send a command should be minimal, there is a time-out in the RCB3J.