Ivan Stoev
Dependents: 3daf572bcae1 Team Team01_HEPTA_Trainig
Fork of HeptaCamera_GPS by
Revision 18:da116273b461, committed 2017-10-28
- Comitter:
- tuba
- Date:
- Sat Oct 28 09:25:36 2017 +0000
- Parent:
- 17:a30fa71eddb7
- Commit message:
- final
Changed in this revision
HeptaCamera_GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
HeptaCamera_GPS.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r a30fa71eddb7 -r da116273b461 HeptaCamera_GPS.cpp --- a/HeptaCamera_GPS.cpp Thu Oct 26 11:27:12 2017 +0000 +++ b/HeptaCamera_GPS.cpp Sat Oct 28 09:25:36 2017 +0000 @@ -721,6 +721,15 @@ flushSerialBuffer(); } +void HeptaCamera_GPS::camera_setting(Baud baud) +{ + GPS_SW = 0; + CAM_SW = 1; + serial._baud(baud); + serial.setTimeout(1); + flushSerialBuffer(); +} + void HeptaCamera_GPS::Sync(void) { camera_setting();
diff -r a30fa71eddb7 -r da116273b461 HeptaCamera_GPS.h --- a/HeptaCamera_GPS.h Thu Oct 26 11:27:12 2017 +0000 +++ b/HeptaCamera_GPS.h Sat Oct 28 09:25:36 2017 +0000 @@ -50,6 +50,7 @@ ErrorNumber getJpegSnapshotPicture_data(); void setmbedBaud(Baud baud); void camera_setting(void); + void camera_setting(Baud baud); void Sync(void); void initialize(Baud baud,JpegResolution jr); void test_jpeg_snapshot_picture(int CAPTURE_FRAMES);