Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Lab9-01_All_transmit Lab9-03_Thermal_chamber Final_Magnetism_measurement_GPS_data_saving LaserCommProtocol_01 ... more
Fork of HeptaCamera_GPS by
Revision 19:d306caa4c5fb, committed 2018-03-07
- Comitter:
- HEPTA
- Date:
- Wed Mar 07 08:47:02 2018 +0000
- Parent:
- 17:b900397671a1
- Child:
- 20:6106352a6909
- Commit message:
- HeptaCamer&GPS revision
Changed in this revision
| HeptaCamera_GPS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HeptaCamera_GPS.cpp Mon Nov 13 01:20:46 2017 +0000
+++ b/HeptaCamera_GPS.cpp Wed Mar 07 08:47:02 2018 +0000
@@ -598,6 +598,9 @@
void HeptaCamera_GPS::camera_setting(void)
{
+ FILE*fp_nu = fopen("/sd/hepta_nihon.txt", "w");
+ fclose(fp_nu);
+ remove("/sd/hepta_nihon.txt");
GPS_SW = 0;
CAM_SW = 1;
serial.setTimeout(1);
@@ -653,9 +656,9 @@
err = getJpegSnapshotPicture();
if (HeptaCamera_GPS::NoError == err) {
- printf("[ OK ] : Camera::getJpegSnapshotPicture\r\n");
+ printf("[ OK ]:Picture taken\r\n");
} else {
- printf("[FAIL] : Camera::getJpegSnapshotPicture (Error=%02X)\r\n", (int)err);
+ printf("[FAIL]:Picture taken(Error=%02X)\r\n", (int)err);
}
fclose(fp_jpeg);
}
@@ -672,9 +675,9 @@
err = getJpegSnapshotPicture_data();
if (HeptaCamera_GPS::NoError == err) {
- printf("[ OK ] : Camera::getJpegSnapshotPicture\r\n");
+ printf("[ OK ]:Picture taken\r\n");
} else {
- printf("[FAIL] : Camera::getJpegSnapshotPicture (Error=%02X)\r\n", (int)err);
+ printf("[FAIL]:Picture taken(Error=%02X)\r\n", (int)err);
}
fclose(fp_jpeg);
}
@@ -685,10 +688,10 @@
HeptaCamera_GPS::ErrorNumber err = HeptaCamera_GPS::NoError;//ErrorNumber define
err = init(baud, jr);//
if (HeptaCamera_GPS::NoError == err) {
- printf("[ OK ] : Camera::init\r\n");
+ printf("[ OK ]:Camera setting\r\n");
setmbedBaud(baud);
} else {
- printf("[FAIL] : Camera::init (Error=%02X)\r\n", (int)err);
+ printf("[FAIL]:Camera setting(Error=%02X)\r\n", (int)err);
}
}
@@ -703,7 +706,6 @@
serial.setTimeout(9999);
}
-
char HeptaCamera_GPS::getc()
{
c = serial.getc();
