Lab4
Dependencies: mbed HeptaBattery SDFileSystem HeptaCamera_GPS
main.cpp@16:788e609bf0a3, 2019-08-17 (annotated)
- Committer:
- HEPTA
- Date:
- Sat Aug 17 09:00:44 2019 +0000
- Revision:
- 16:788e609bf0a3
- Parent:
- 14:08133ae9bed7
- Child:
- 17:a1d046102f3b
Change the baud rate of the header file to 4800
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:bdbd3d6fc5d5 | 1 | #include "mbed.h" |
mbed_official | 0:bdbd3d6fc5d5 | 2 | #include "SDFileSystem.h" |
umeume | 2:1c5cdb2c3e0f | 3 | #include "HeptaCamera_GPS.h" |
umeume | 2:1c5cdb2c3e0f | 4 | |
umeume | 2:1c5cdb2c3e0f | 5 | Serial pc(USBTX,USBRX); |
HEPTA | 9:942eb6e8c117 | 6 | SDFileSystem sd(p5, p6, p7, p8, "sd"); |
umeume | 2:1c5cdb2c3e0f | 7 | HeptaCamera_GPS cam_gps(p13, p14,p25,p24); |
HEPTA | 16:788e609bf0a3 | 8 | DigitalOut EN(p26); |
umeume | 2:1c5cdb2c3e0f | 9 | int main() |
umeume | 2:1c5cdb2c3e0f | 10 | { |
HEPTA | 16:788e609bf0a3 | 11 | EN = 1; // EN pin : high |
HEPTA | 14:08133ae9bed7 | 12 | cam_gps.gps_setting(); |
HEPTA | 14:08133ae9bed7 | 13 | pc.printf("GPS Raw Data Mode\r\n"); |
HEPTA | 14:08133ae9bed7 | 14 | while(1) pc.putc(cam_gps.getc()); |
umeume | 2:1c5cdb2c3e0f | 15 | } |