Hello everybody,
I would like to let you have the latest News: The NG is able to use the GPS for tracking!
After having implemented the GPS NMEA parser some while ago I left the GPS beside because to use GPS for controlling you need a working compass. Since the compass of the current hardware revision is not really useable for that sort of thing, I never got round to use the GPS for something sensible.
Last week I suddently realized that even trough it's not possible to use the GPS for controlling purposes without a compass it surly is possible to use it for tracking! So I started hacking on the GPS tracking feature. I store the GPS positions in RAM and for that I reduce the 3 double precision floats to 6 byte. That way it's easy possible to store 1000 points in the free RAM.
I also implemented a small XML generator which directly outputs KML standard files which can be directly loaded in Google Earth. Furthermore I wrote a new behavior action named gps.track() which takes one parameter telling it to switch it on or off.
Writing a behavior rule to switch on GPS tracking when reachin flightstate FLYING and a second rule to stop GPS tracking when leaving flightstate FLYING took another minute and was a two-liner in the NG console.
The first GPS tracking flight was done on the 11.July. A second GPS tracking flight was done 4 days later:
Wolferl-NG: Amir's maiden flight of his 38cm NG from Amir on Vimeo.