Camera Ver3

Dependencies:   mbed HeptaBattery SDFileSystem HeptaCamera_GPS

Fork of Lab7-01_template by HEPTA-Sat Training 2017~2018

Committer:
HEPTA
Date:
Wed Aug 08 09:26:42 2018 +0000
Revision:
21:ecb6fe92cd3a
Parent:
17:1c3433f46c17
Child:
23:39e0b9856651
Camera snapshot

Who changed what in which revision?

UserRevisionLine numberNew 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");
HEPTA 14:52fe0357f8b2 7 HeptaCamera_GPS cam_gps(p13, p14,p25,p24);//(tx,rx,camera switch,gps switch)
umeume 5:c5ccb1b07e8f 8
umeume 2:1c5cdb2c3e0f 9 int main()
umeume 2:1c5cdb2c3e0f 10 {
HEPTA 14:52fe0357f8b2 11 pc.printf("Camera Snapshot Mode\r\n");
HEPTA 17:1c3433f46c17 12 pc.printf("Hit Any Key To Take Picture\r\n");
HEPTA 17:1c3433f46c17 13 while(!pc.readable()) {}
HEPTA 14:52fe0357f8b2 14 cam_gps.Sync();
HEPTA 14:52fe0357f8b2 15 cam_gps.initialize(HeptaCamera_GPS::Baud115200, HeptaCamera_GPS::JpegResolution320x240);
HEPTA 21:ecb6fe92cd3a 16 cam_gps.test_jpeg_snapshot_picture("/sd/test.jpg");
umeume 2:1c5cdb2c3e0f 17 }