GPS sample program for training session in yokohama aerospace

Dependencies:   mbed

Committer:
onseeen
Date:
Sat Oct 10 15:02:27 2015 +0000
Revision:
0:bce2ec199fba
This program is sample program of the gps module for the training session in yokohama aerospace.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
onseeen 0:bce2ec199fba 1 #include "mbed.h"
onseeen 0:bce2ec199fba 2
onseeen 0:bce2ec199fba 3 Serial pc(USBTX, USBRX); // tx, rx
onseeen 0:bce2ec199fba 4 Serial gps(p9,p10);
onseeen 0:bce2ec199fba 5
onseeen 0:bce2ec199fba 6
onseeen 0:bce2ec199fba 7 int main() {
onseeen 0:bce2ec199fba 8 //pc.printf("Hello World!\n\r");
onseeen 0:bce2ec199fba 9 gps.baud(9600);
onseeen 0:bce2ec199fba 10 gps.format(8,SerialBase::None,1);
onseeen 0:bce2ec199fba 11 wait(5);
onseeen 0:bce2ec199fba 12
onseeen 0:bce2ec199fba 13 while(1) {
onseeen 0:bce2ec199fba 14 pc.printf("%c",gps.getc());
onseeen 0:bce2ec199fba 15 }
onseeen 0:bce2ec199fba 16 }