Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
53b373dd
Commit
53b373dd
authored
11 years ago
by
Lorenz Meier
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes to log conversion scripts
parent
0025e9ca
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tools/logconv.m
+2
-2
2 additions, 2 deletions
Tools/logconv.m
Tools/sdlog2_dump.py
+0
-1
0 additions, 1 deletion
Tools/sdlog2_dump.py
with
2 additions
and
3 deletions
Tools/logconv.m
+
2
−
2
View file @
53b373dd
...
...
@@ -111,9 +111,9 @@ function ImportPX4LogData()
time_us
=
sysvector
.
TIME_StartTime
(
end
)
-
sysvector
.
TIME_StartTime
(
1
);
time_s
=
uint64
(
time_us
*
1e-6
);
time_m
=
uint64
(
time_s
/
60
);
time_s
=
time_s
-
time_m
*
60
time_s
=
time_s
-
time_m
*
60
;
disp
([
sprintf
(
'Flight log duration: %d:%d (minutes:seconds)'
,
time_m
,
time_s
)]);
disp
([
sprintf
(
'Flight log duration: %d:%d (minutes:seconds)'
,
time_m
,
time_s
)
char
(
10
)
]);
disp
([
'logfile conversion finished.'
char
(
10
)]);
else
...
...
This diff is collapsed.
Click to expand it.
Tools/sdlog2_dump.py
+
0
−
1
View file @
53b373dd
...
...
@@ -200,7 +200,6 @@ class SDLog2Parser:
else
:
data
=
struct
.
unpack
(
self
.
MSG_FORMAT_STRUCT
,
str
(
self
.
__buffer
[
self
.
__ptr
+
3
:
self
.
__ptr
+
self
.
MSG_FORMAT_PACKET_LEN
]))
msg_type
=
data
[
0
]
print
(
msg_type
)
if
msg_type
!=
self
.
MSG_TYPE_FORMAT
:
msg_length
=
data
[
1
]
if
runningPython3
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment