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
274d5dc3
Commit
274d5dc3
authored
Nov 15, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
9712569a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
14 deletions
+21
-14
read_imu_log.php
src/read_imu_log.php
+21
-14
No files found.
src/read_imu_log.php
View file @
274d5dc3
...
@@ -62,12 +62,6 @@ if (isset($_GET['file'])){
...
@@ -62,12 +62,6 @@ if (isset($_GET['file'])){
$init
=
false
;
$init
=
false
;
}
}
if
(
!
$nogui
){
//list available files
echo
html
();
die
(
0
);
}
if
(
isset
(
$_GET
[
'record'
]))
$record
=
$_GET
[
'record'
]
+
0
;
if
(
isset
(
$_GET
[
'record'
]))
$record
=
$_GET
[
'record'
]
+
0
;
else
$record
=
0
;
else
$record
=
0
;
...
@@ -86,7 +80,8 @@ if ($nRecords>($numRecordsInFile-$record)) $nRecords= $numRecordsInFile-$record;
...
@@ -86,7 +80,8 @@ if ($nRecords>($numRecordsInFile-$record)) $nRecords= $numRecordsInFile-$record;
if
(
$limit
>
0
)
$nRecords
=
$numRecordsInFile
;
if
(
$limit
>
0
)
$nRecords
=
$numRecordsInFile
;
if
(
isset
(
$_GET
[
'filter'
]))
$filter
=
intval
(
$_GET
[
'filter'
],
0
);
if
(
isset
(
$_GET
[
'filter'
]))
$filter
=
intval
(
$_GET
[
'filter'
],
0
);
else
$filter
=
0x7f
;
else
$filter
=
0x3ff
;
/*
/*
1 - NMEA sentence 0 $GPRMC (log type 1)
1 - NMEA sentence 0 $GPRMC (log type 1)
2 - NMEA sentence 1 $GPGGA (log type 1)
2 - NMEA sentence 1 $GPGGA (log type 1)
...
@@ -97,6 +92,12 @@ else $filter= 0x7f;
...
@@ -97,6 +92,12 @@ else $filter= 0x7f;
64 - ODOMETER (type 3)
64 - ODOMETER (type 3)
*/
*/
if
(
!
$nogui
){
//list available files
echo
html
();
die
(
0
);
}
//$timeShift = 21600; // 6 hrs
//$timeShift = 21600; // 6 hrs
$timeShift
=
0
;
// 0 hrs
$timeShift
=
0
;
// 0 hrs
...
@@ -556,13 +557,19 @@ function showlist(){
...
@@ -556,13 +557,19 @@ function showlist(){
function
html
(){
function
html
(){
global
$file
;
global
$file
,
$limit
,
$record
,
$nRecords
;
global
$init
;
global
$init
;
if
(
$init
)
{
if
(
$init
)
{
$insert
=
$file
;
$ins_file
=
$file
;
$ins_limit
=
$limit
;
$ins_rec
=
$record
;
$ins_nrec
=
$_GET
[
'nrecords'
]
+
$record
;
}
else
{
}
else
{
$insert
=
"imu.log"
;
$ins_file
=
"imu.log"
;
$ins_limit
=
5000
;
$ins_rec
=
0
;
$ins_nrec
=
5000
;
}
}
$js
=
js
();
$js
=
js
();
...
@@ -593,7 +600,7 @@ function html(){
...
@@ -593,7 +600,7 @@ function html(){
<td>
<td>
<table>
<table>
<tr>
<tr>
<td>Filename: <input type='text' id='file' value='$ins
ert
' style='width:400px;' onchange='getRqStr()'> <button onclick='getList()'>List log files</button> </td>
<td>Filename: <input type='text' id='file' value='$ins
_file
' style='width:400px;' onchange='getRqStr()'> <button onclick='getList()'>List log files</button> </td>
</tr>
</tr>
<tr>
<tr>
<td colspan=''>Record filter:
<td colspan=''>Record filter:
...
@@ -622,14 +629,14 @@ function html(){
...
@@ -622,14 +629,14 @@ function html(){
<table>
<table>
<tr>
<tr>
<td></td>
<td></td>
<td>Begin</td><td><input id='start' type='text' value='
0
' style='width:100px;text-align:right;' onchange='getRqStr()'></td>
<td>Begin</td><td><input id='start' type='text' value='
$ins_rec
' style='width:100px;text-align:right;' onchange='getRqStr()'></td>
</tr>
</tr>
<tr>
<tr>
<td></td>
<td></td>
<td>End</td><td><input id='end' type='text' value='
5000
' style='width:100px;text-align:right;' onchange='getRqStr()'></td>
<td>End</td><td><input id='end' type='text' value='
$ins_nrec
' style='width:100px;text-align:right;' onchange='getRqStr()'></td>
</tr>
</tr>
<td><input type='checkbox' id='show_limit_toggle' checked onchange='getRqStr()'></td>
<td><input type='checkbox' id='show_limit_toggle' checked onchange='getRqStr()'></td>
<td>Show limit</td><td><input id='limit' type='text' value='
5000
' style='width:100px;text-align:right;' onchange='getRqStr()'></td>
<td>Show limit</td><td><input id='limit' type='text' value='
$ins_limit
' style='width:100px;text-align:right;' onchange='getRqStr()'></td>
</tr>
</tr>
</table>
</table>
</td>
</td>
...
...
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