l3v3rz wrote:I have got the PSD sensor working. Moving on to Mic and Voltage. Same basic routine so will post code when I have all three going.
l3v3rz wrote:It hasn't changed since July. All the code there including PSD sensor and even the accelerometer code (did you buy one as well?)
l3v3rz wrote:http://robosavvy.com/Builders/l3v3rz/robobuilder_0_3.zip
Currently working on trying to link accelerometer to motion and get bot to dynamic balance.
Joe wrote:Not yet — I'm waiting for Trossen to have them available here in the states.
avr-gcc -mmcu=atmega128 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT main.o -MF dep/main.o.d -c main.c
In file included from main.c:16:
global.h:25:24: avrlibdefs.h: No such file or directory
global.h:27:25: avrlibtypes.h: No such file or directory
In file included from main.c:21:
uart.h:177: error: syntax error before "baudrate"
uart.h:192: error: syntax error before "data"
uart.h:206: error: syntax error before "uartReceiveByte"
uart.h:206: error: syntax error before '*' token
uart.h:206: warning: type defaults to `int' in declaration of `uartReceiveByte'
uart.h:206: warning: data definition has no type or storage class
uart.h:210: error: syntax error before "uartReceiveBufferIsEmpty"
uart.h:210: warning: type defaults to `int' in declaration of `uartReceiveBufferIsEmpty'
uart.h:210: warning: data definition has no type or storage class
uart.h:218: error: syntax error before "uartAddToTxBuffer"
uart.h:218: error: syntax error before "data"
uart.h:218: warning: type defaults to `int' in declaration of `uartAddToTxBuffer'
uart.h:218: warning: data definition has no type or storage class
uart.h:227: error: syntax error before "uartSendBuffer"
uart.h:227: error: syntax error before "u16"
uart.h:227: warning: type defaults to `int' in declaration of `uartSendBuffer'
uart.h:227: warning: data definition has no type or storage class
In file included from main.c:25:
accelerometer.h:10:30: warning: no newline at end of file
main.c: In function `SW_init':
main.c:320: error: `FALSE' undeclared (first use in this function)
main.c:320: error: (Each undeclared identifier is reported only once
main.c:320: error: for each function it appears in.)
main.c: In function `main':
main.c:344: warning: passing arg 1 of `rprintfInit' from incompatible pointer type
main.c:349: error: `FALSE' undeclared (first use in this function)
make: *** [main.o] Error 1
Joe wrote:Now to figure out how to install the compiled code onto the RBC, preferably without having to boot into Windows to do it...
sunnykim@robobuilder.net wrote:1. What is the protocol between the RBC and the PC during a firmware
upgrade?
=> Sorry that we can not open this information at this point of time.
2. May I have the source code for the RBC Upgrade Tool?
=> Sorry that we can not open this information at this point of time, either.
Joe wrote:I guess they must own Microsoft stock.It's very frustrating — everything else can be done on a Unix or Linux box, if you're writing your own code in C, but the actual uploading of the file requires Windows. That is, until somebody reverse-engineers the protocol — but it'd be much safer if they just told us what it is.