Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-gps
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-gps
Commits
64f912ce
Commit
64f912ce
authored
Mar 09, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added start_ims.php instead of start_compass_gps.php, updated for InertialSense IMX-5
parent
03fb00c0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
797 additions
and
8 deletions
+797
-8
Makefile
src/Makefile
+1
-1
imu_setup.php
src/imu_setup.php
+1
-1
logger_launcher.php
src/logger_launcher.php
+6
-6
start_ims.php
src/start_ims.php
+789
-0
No files found.
src/Makefile
View file @
64f912ce
...
@@ -12,7 +12,7 @@ INSTGROUP = root
...
@@ -12,7 +12,7 @@ INSTGROUP = root
PROGS
=
nmea2exif log_imu garminusb2nmea garminusb2exif
PROGS
=
nmea2exif log_imu garminusb2nmea garminusb2exif
SRCS
=
nmeagen.c exifgen.c garminusb2nmea.c garminusb2exif.c nmea2exif.c log_imu.c
SRCS
=
nmeagen.c exifgen.c garminusb2nmea.c garminusb2exif.c nmea2exif.c log_imu.c
OBJS
=
nmeagen.o exifgen.o garminusb2nmea.o garminusb2exif.o nmea2exif.o
OBJS
=
nmeagen.o exifgen.o garminusb2nmea.o garminusb2exif.o nmea2exif.o
PHPSCRIPTS
=
start_gps_compass.php
PHPSCRIPTS
=
start_gps_compass.php
start_ims.php
PHPWEB
=
logger_launcher.php imu_setup.php read_imu_log.php
PHPWEB
=
logger_launcher.php imu_setup.php read_imu_log.php
CFLAGS
+=
-Wall
-I
$(STAGING_DIR_HOST)
/usr/include-uapi
CFLAGS
+=
-Wall
-I
$(STAGING_DIR_HOST)
/usr/include-uapi
...
...
src/imu_setup.php
View file @
64f912ce
...
@@ -375,7 +375,7 @@ function help() {
...
@@ -375,7 +375,7 @@ function help() {
</li>
</li>
</ul>
</ul>
</p>
</p>
<p>You may record the log to a file (i.e. on external USB stick or SSD/HDD) with t
eh
following command:<br/>
<p>You may record the log to a file (i.e. on external USB stick or SSD/HDD) with t
he
following command:<br/>
<b>cat /dev/imu ><i>log-file-path</i></b></p>
<b>cat /dev/imu ><i>log-file-path</i></b></p>
<p>Test logger and GPS:<br/>
<p>Test logger and GPS:<br/>
...
...
src/logger_launcher.php
View file @
64f912ce
...
@@ -72,13 +72,13 @@ if ($cmd=="start") {
...
@@ -72,13 +72,13 @@ if ($cmd=="start") {
//$dev = "/dev/hda1";
//$dev = "/dev/hda1";
if
(
!
$force_dev
)
{
if
(
!
$force_dev
)
{
$sda1
=
exec
(
"cat /proc/diskstats | grep 'sda1'"
);
$sda1
=
exec
(
"cat /proc/diskstats | grep 'sda1'"
);
if
(
strlen
(
$sda1
)
>
0
)
$dev
=
"/dev/sda1"
;
if
(
strlen
(
$sda1
)
>
0
)
$dev
=
"/dev/sda1"
;
else
{
else
{
$xml
.=
"
\t
<error>CF cards not found</error>
\n
"
;
$xml
.=
"
\t
<error>CF cards not found</error>
\n
"
;
send_response
(
$xml
);
send_response
(
$xml
);
}
}
}
}
exec
(
"mount
$dev
$mount_point
"
);
exec
(
"mount
$dev
$mount_point
"
);
...
...
src/start_ims.php
0 → 100755
View file @
64f912ce
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment