SpotPilot - Reading NMEA sentences from the GPS
Posted by: Paul René Jørgensen in Airplane, Java, tags: autopilot, gps, Java, nmea, spot, sun, sun spotTonight I upgraded one of my Sun Spots to the new beta release of the blue firmware. One of the changes were an important bugfix in the UART code of the daughter board handling the UART buffers.
Anyway, after upgrading I wrote some test code to display the NMEA data from the GPS and guess what.. It worked!
EDemoBoard edb = EDemoBoard.getInstance();
edb.initUART(edb.SERIAL_SPEED_4800, edb.SERIAL_DATABITS_8, edb.SERIAL_PARITY_NONE, edb.SERIAL_STOPBITS_1);
while(true) {
try {
System.out.print((char) edb.readUART(1000));
} catch (IOException e) {
e.printStackTrace();
}
}
And the output (No fix. I was in my livingroom)..
Squawk VM Starting (blue-080718)... $GPGGA,220058.000,,,,,0,00,50.0,,M,0.0,M,,0000*40 $GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05 $GPRMC,220058.000,V,,,,,,,080808,,*2A $GPGGA,220059.000,,,,,0,00,50.0,,M,0.0,M,,0000*41 $GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05 $GPRMC,220059.000,V,,,,,,,080808,,*2B $GPGGA,220100.000,,,,,0,00,50.0,,M,0.0,M,,0000*4C $GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05 $GPGSV,3,1,12,03,67,195,,06,61,164,21,19,57,270,,18,48,083,17*71 $GPGSV,3,2,12,22,46,145,17,21,26,080,,08,20,318,32,15,20,030,*74 $GPGSV,3,3,12,26,17,013,,27,12,293,,07,11,282,,16,10,185,*71 $GPRMC,220100.000,V,,,,,,,080808,,*26

I just wanted to let you know about todays progress. The GPS module landed in the mailbox this morning, but I forced myself not to rush and wire it up to the Spot right away. I know that this GPS module is compatible with the Spot so there was no reason to rush it.
Next up was to prototype the rudder servo pass through. I added some more wires to the Spot connecting the servo signal cable to one of the Hx pins and made sure the servo was powered by the RC receiver.









Entries (RSS)