UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


code:nmea_collection

This is an old revision of the document!


NMEA collection (Arduino code)

void setup() {

Serial.begin(9600); // Initialize the serial connection

}

void loop() {

if(Serial.available()>0) {
  int nmea = Serial.read();
  if(nmea==0) {
    Serial.print(nmea);
  }
  else {
    Serial.print(nmea, BYTE);
  }
  Serial.println();
}

}

code/nmea_collection.1216510404.txt.gz ยท Last modified: 2009/03/26 22:24 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki