Modifications

Sauter à la navigation Sauter à la recherche
1 917 octets ajoutés ,  13 mai 2012 à 20:13
Ligne 229 : Ligne 229 :     
Ouvrez le sketch '''File→Examples→Adafruit_GPS→locus_start''', ce dernier montre comment démarrer le logger (appelé LOCUS)  
 
Ouvrez le sketch '''File→Examples→Adafruit_GPS→locus_start''', ce dernier montre comment démarrer le logger (appelé LOCUS)  
 +
 +
The key part is here:
 +
<nowiki>  Serial.print("STARTING LOGGING....");
 +
  if (GPS.LOCUS_StartLogger())
 +
    Serial.println(" STARTED!");
 +
  else
 +
    Serial.println(" no response :(");
 +
  delay(1000);
 +
</nowiki>
 +
 +
You should start the logger and then check the response
 +
 +
[[Fichier:GpsUltimateLocus1.jpg]]
 +
 +
Once you've seen that the GPS is OK with logging, you can load up the status sketch which will also give you more data. Upload '''File→Examples→Adafruit_GPS→locus_status'''
 +
 +
[[Fichier:GpsUltimateLocus2.jpg]]
 +
 +
This output gives you some more information. the first entry is the Log #. This is how many log traces are in the memory. Every time you start and save data, a new log is made. Full Stop means that once the logger has run out of memory it will stop. Next the output indicates that we are logging only during fix data and at set intervals, with an interval delay of 15 seconds. We are not logging based on distance or speed. The current status is LOGGING (active), there's also the number of records we've stored. Each record is a timestamped location. We log once every 15 seconds, you can see the records increment from 344 to 345 here. Lastly, we can see how much of the internal flash storage is used, only 4% at this point
 +
 +
In real use, you'll probably want to start the loggging and then have your microcontroller go to sleep to reserve power, waking up once in a while to check up on the logging status.
 +
 +
Finally, once we're done logging we need to extract the data. To do this we need to first get the raw data out of the FLASH and then decode the sentences. Upload '''File→Examples→Adafruit_GPS→locus_dump''' to the Arduino and open up the serial monitor
 +
 +
[[Fichier:GpsUltimateLocus3.jpg]]
 +
 +
Copy and paste all the text after the —-'s (starting with $PMTKLOX,0,86*67 and ending with $PMTK001,622,3*36) then paste it into the following box:
 +
 +
http://ladyada.net/products/ultimategps/
 +
    
{{tmbox | text =A suivre...}}
 
{{tmbox | text =A suivre...}}
29 836

modifications

Menu de navigation