Hello Jon,
Thank you for the reply. (Please know I am new to this cool stuff).
I didn't include the code because its not mine and I didnt want to upset the aurthor, its actually in the public domain so I guess on reflection its ok.
The Arduino Pro Mini is used to mod the AR Drone, it enables a standard RC transmitter/reciever to control the drone rather than the onboard wifi network and iphone/ipod.
I do have the leostick configured correctly but this code wasn't written for the leostick, I figured I'd give it a go anyway.
When I tried to complie the code I get the following
rx2atp.c.c: In function 'uart_setup':
rx2atp.c.c:61: error: 'UBRR0' undeclared (first use in this function)
rx2atp.c.c:61: error: (Each undeclared identifier is reported only once
rx2atp.c.c:61: error: for each function it appears in.)
rx2atp.c.c:62: error: 'UCSR0A' undeclared (first use in this function)
rx2atp.c.c:67: error: 'UCSR0B' undeclared (first use in this function)
rx2atp.c.c:68: error: 'UCSR0C' undeclared (first use in this function)
rx2atp.c.c: In function 'USART_RX_vect':
rx2atp.c.c:558: error: 'UDR0' undeclared (first use in this function)
rx2atp.c.c: In function 'USART_UDRE_vect':
rx2atp.c.c:589: error: 'UDR0' undeclared (first use in this function)
rx2atp.c.c:593: error: 'UCSR0B' undeclared (first use in this function)
rx2atp.c.c:593: error: 'UDRIE0' undeclared (first use in this function)
rx2atp.c.c: In function 'sio_sc':
rx2atp.c.c:604: error: 'UCSR0B' undeclared (first use in this function)
rx2atp.c.c:604: error: 'UDRIE0' undeclared (first use in this function)
rx2atp.c.c: In function 'main':
rx2atp.c.c:1103: error: 'UCSR0B' undeclared (first use in this function)
rx2atp.c.c:1103: error: 'RXCIE0' undeclared (first use in this function)
rx2atp.c.c:1103: error: 'RXEN0' undeclared (first use in this function)
rx2atp.c.c:1103: error: 'TXEN0' undeclared (first use in this function)
rx2atp.c.c:1105: error: 'PCIE2' undeclared (first use in this function)
rx2atp.c.c:1108: error: 'PCIE1' undeclared (first use in this function)
drs006.zip (66.1 KB)