Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Building and Programming an Asuro Robot in Linux? 20

0R35T35 asks: "I'm currently in the process of building an Asuro mobile robot, and am startled to find (through Google) that there aren't any English speaking community sites for this robot kit. Does anyone know of sites or resources devoted to this cute little guy, or have an Asuro of their own?"
This discussion has been archived. No new comments can be posted.

Building and Programming an Asuro Robot in Linux?

Comments Filter:
  • by sophanes ( 837600 ) on Tuesday April 11, 2006 @02:15AM (#15103976)
    Depends. From what I can gather, the author is trying to send an array of integers to the serial port. To do this, the uC forms a character string from the array of integers using sprintf() then sends the string. This is a pretty inefficient way of doing things (particularly given the bloat in avr-libc's string handling).

    A much better idea would be to set the USART to use 8 data bits and then send the array 1 byte at a time - trivial if you are using 8-bit integers, but requires a 16-bit integer to be sent as two bytes - and stitching the data back together at the host PC end. PC resources are cheap, uC resources are scarce.

There are two ways to write error-free programs; only the third one works.

Working...