Join us in Chat. Click link in menu bar to join. Unofficial chat day is every Friday night (US time).
0 Members and 1 Guest are viewing this topic.
As for the SSC, I haven't used it before, but with a quick glance through the manual it appears you can just use the rprintf function to control it.For example:rprintf("SSCAT #0P2000T5000;<cr>");This is how I control the Blackfin camera.
Is it relevant for me to understand what's inside the ()s of the example line you give there? Cause I definitely don't :/
Also, is there a 128 byte limit on the receiving buffers on the Axon's UART? Seems like it *shrug*Edit: Actually it seems like the buffer discards the first byte in an array that I send, can store up to 132 bytes, and if it receives less than 132 bytes, it appends a byte with the value of 0. (And empty buffer values are -1)
Also, is there a 128 byte limit on the receiving buffers on the Axon's UART? Seems like it *shrug*
QuoteIs it relevant for me to understand what's inside the ()s of the example line you give there? Cause I definitely don't :/I took that line exactly from the SSC datasheet, as specified in that datasheet.rprintf("ssc command goes here");//send command to ssc
v1 = 0xFF; //255 in hex (v1 is a char, and compiler doesn't complain)rprintf("%x",v1);rprintf("255");rprintf("%c",v1);rprintfChar(0xFF);
rprintfInit(uart0SendByte);//set to use uart0uartSetBaudRate(0, 9600); //set baud rate//<255 (sync)> <servo#> <position>rprintf("255,5,200"); //moves servo number 5 to position 200
axon=1;rprintf("I love my Axon: %d",axon);rprintf("Look! %d Two variables! %d", axon, squirrel);
"[The bytes] must be sent as individual byte values, not as text representations of numbers as y ou might type at a terminal." (page 4 of manual)
rprintf("%c %c %c",255, 5, 200);
//&0x0F strips ascii off to use in char stringsrprintf("%c %c %c",255 & 0x0F, 5 & 0x0F, 200 & 0x0F);
rprintf("blah", var1, var2, etc);
u08 SyncUp;SyncUp = 255;rprintf("%c", SyncUp);
u08 aa = _BV(255); u08 bb = _BV(2); u08 cc = _BV(100); rprintf("%c",aa); delay_us(2); rprintf("%c",bb); delay_us(2); rprintf("%c",cc); counter ++; LED_flash(1);