|
开始学习写在AR.Drone上运行的程序.
先在Windows XP下交叉编译, 然后拷贝到AR.Drone上运行.
试了个小小Hello程序gps.c:
#include <stdio.h>
int main () {
printf ("Hello!\nMAPGPS\n");
return 0;
}
D:\Work\Test\AR.Drone>arm-none-linux-gnueabi-gcc gps.c
D:\Work\Test\AR.Drone>ftp 192.168.0.100
Connected to 192.168.0.100.
220 Operation successful
User (192.168.0.100:(none)):
230 Operation successful
ftp> bin
200 Operation successful
ftp> put gps
200 Operation successful
150 Ok to send data
226 Operation successful
ftp: 5679 bytes sent in 0.00Seconds 5679000.00Kbytes/sec.
ftp>
D:\Work\Test\AR.Drone>telnet 192.168.0.100
BusyBox v1.14.0 (2010-07-02 15:17:06 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# cd data
# chmod 755 gps
# ./gps
Hello!
MAPGPS
#
GPS模块已经下单买了, 接下来试验与AR.Drone的串口连接, 写程序(gps.c)接收NMEA GPS数据并解析, 再控制AR.Drone ... |
|