0
Offline
Newbie
Karma: 0
Posts: 32
Arduino rocks
|
 |
« on: January 27, 2012, 09:17:33 am » |
ok so i am working on a robot controller, i have a labview program that is reading the values of my controllers (the axis info, the button info etc) and it is streaming it threw a virtual com port, to a WIFly Modual (RN-XV WIFLY modual) witch is than sending the data to the arduino mega serial 1. this data is getting sent at the highest speed possable, and it is always being sent.
my question is: I have a never stopping separated values comming in to the arduino, but i want to be able to use the data at the same time to limit the delay to a minimal level.
EX of the data comming in "255,128,128,0,0,128,0,0,0,0,0,0,0,0,0,0,0;" the first six values are numbers between 0-255, they are 2 joysticks. the next 11 values are 0 or 1 for 11 buttons.
so what is the most efficient way of parsing the data and driving the motors and accessories while still trying to keep real time control?
|