Commit 64f912ce authored by Andrey Filippov's avatar Andrey Filippov

added start_ims.php instead of start_compass_gps.php, updated for InertialSense IMX-5

parent 03fb00c0
......@@ -12,7 +12,7 @@ INSTGROUP = root
PROGS = nmea2exif log_imu garminusb2nmea garminusb2exif
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
PHPSCRIPTS= start_gps_compass.php
PHPSCRIPTS= start_gps_compass.php start_ims.php
PHPWEB= logger_launcher.php imu_setup.php read_imu_log.php
CFLAGS += -Wall -I$(STAGING_DIR_HOST)/usr/include-uapi
......
......@@ -375,7 +375,7 @@ function help() {
</li>
</ul>
</p>
<p>You may record the log to a file (i.e. on external USB stick or SSD/HDD) with teh following command:<br/>
<p>You may record the log to a file (i.e. on external USB stick or SSD/HDD) with the following command:<br/>
<b>cat /dev/imu &gt;<i>log-file-path</i></b></p>
<p>Test logger and GPS:<br/>
......
......@@ -72,13 +72,13 @@ if ($cmd=="start") {
//$dev = "/dev/hda1";
if (!$force_dev) {
$sda1 = exec("cat /proc/diskstats | grep 'sda1'");
$sda1 = exec("cat /proc/diskstats | grep 'sda1'");
if (strlen($sda1)>0) $dev = "/dev/sda1";
else {
$xml .= "\t<error>CF cards not found</error>\n";
send_response($xml);
}
if (strlen($sda1)>0) $dev = "/dev/sda1";
else {
$xml .= "\t<error>CF cards not found</error>\n";
send_response($xml);
}
}
exec("mount $dev $mount_point");
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment