The board I've been designing is a new controller for robotics at my school. it has 8 buttons (0..7 pins) and joysticks (8..11pins) the joysticks work perfectly without any delay. However I have not found a way to send the button data proficiently. I need a way to send the buttons values in packets like earlier mentioned, and to receive them and read each individual button on the receiver.
I had just changed that earlier, i had it in the repeat. It still was refusing to work. I'm just getting into .spin, however i have prior experience with LUA, C, and Java
Well, if the pst.bin is displaying what you expect, then the buttons must be wired correctly. Just make sure both end of the XBee link agree on what a packet looks like...
Edit: My inclination would be to gather all the variables on the tx side and then send them at once. Isolate the gathering from the transmission, so to speak. And I would probably send a checksum, as well. Similarly on the rx side. EndEdit
On my Robot Controller, I have the button data being sent in 8 bit data packets. I just need to know what button is being pressed on the receive side .
Comments
pointer to a book
How can I read the values on the xbee receive side?
joystick rc transmitter using c
I prefer C over SPIN.
Mike
Edit: My inclination would be to gather all the variables on the tx side and then send them at once. Isolate the gathering from the transmission, so to speak. And I would probably send a checksum, as well. Similarly on the rx side. EndEdit
Thanks,
Ryan Canaway