AR Drone 2/GPS

From PaparazziUAV
Revision as of 10:21, 18 March 2013 by Flixr (talk | contribs) (moved GPS AR.Drone2 to AR Drone 2/GPS)
Jump to navigation Jump to search

That way we could extract the received data from the GPS and output it in our preferred format. To create our own driver, we first needed to know how to retrieve the data from the GPS. We downloaded the Linux USB Driver and learned from the readme that you could use the GPS with the following commando:

su root

stty -F /dev/ttyUSB0 ispeed 4800 && cat < /dev/ttyUSB0

With this we found out that we needed to create a program that opens the /dev/ttyUSB0 device and reads it at a baud rate of 4800. We had to pick a datatype since working with several datatypes at the same time would be confusing. Therefore we had to extract the right datatype string from the data strings output by the GPS and format that string into useful information.

Later, when we were trying to integrate the GPS with paparazzi, we found out that there was already a parser for the protocol of the GPS: the NMEA. This parser (altough stated to be incomplete) provides most of the necassary data we wanted to use. We therefore ceased working on our own parser.