by inaki » Tue May 23, 2006 7:20 pm
by inaki
Tue May 23, 2006 7:20 pm
Yes, I am talking about boot mode. Behavior Control(BC) loads a block of bytes directly to CM5 memory with the command LOAD. To achieve this BC enters boot mode (the same boot mode you enter when presing the # key under Robot Terminal; it actually does the same!). The bytes loaded at the address specificed are the commands you write in BC but tokenized, i.e., converted to codes. Each command is represented by a code plus its parameters.
So for example to send the sequence
START
LOAD DX17,30,1
END
is converted to (simplified a bit):
*** ; Starts a command
########## ;Enters Boot Mode
LD A000 ; select address for loading
0D
04 ; START
06; LOAD
17; Servo ID
30; Register
1; value for this register
05 ;END
*** ;end command
So you might use any utility to upload programs to CM5 writen in any way you want, be it an script, a VB program or a C program. Of course you would need to convert the commands to tokens before sending them.
I am talking here about writing programs the way BC does but without using BC.
I am afraid I don't get your idea of scripting here.
May you ellaborate about your scripting idea ?
Yes, I am talking about boot mode. Behavior Control(BC) loads a block of bytes directly to CM5 memory with the command LOAD. To achieve this BC enters boot mode (the same boot mode you enter when presing the # key under Robot Terminal; it actually does the same!). The bytes loaded at the address specificed are the commands you write in BC but tokenized, i.e., converted to codes. Each command is represented by a code plus its parameters.
So for example to send the sequence
START
LOAD DX17,30,1
END
is converted to (simplified a bit):
*** ; Starts a command
########## ;Enters Boot Mode
LD A000 ; select address for loading
0D
04 ; START
06; LOAD
17; Servo ID
30; Register
1; value for this register
05 ;END
*** ;end command
So you might use any utility to upload programs to CM5 writen in any way you want, be it an script, a VB program or a C program. Of course you would need to convert the commands to tokens before sending them.
I am talking here about writing programs the way BC does but without using BC.
I am afraid I don't get your idea of scripting here.
May you ellaborate about your scripting idea ?