Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Distributed Autonomous Networked Control Lab
MicroCART
Commits
b19ec835
Commit
b19ec835
authored
8 years ago
by
dawehr
Browse files
Options
Downloads
Patches
Plain Diff
Made quad log file compatible with analysis scripts.
parent
9e3f7439
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
quad/src/quad_app/log_data.c
+2
-2
2 additions, 2 deletions
quad/src/quad_app/log_data.c
with
2 additions
and
2 deletions
quad/src/quad_app/log_data.c
+
2
−
2
View file @
b19ec835
...
...
@@ -187,7 +187,7 @@ void printLogging(hardware_t *hardware_struct, log_t* log_struct, parameter_t* p
// Comment header
safe_sprintf_cat
(
&
buf
,
"# MicroCART On-board Quad Log
\n
# Sample size: %d
\n
"
,
arrayIndex
);
// Header names for the pre-defined values
safe_sprintf_cat
(
&
buf
,
"
t
ime
\t
accel_x
\t
accel_y
\t
accel_z
\t
gyro_x
\t
gyro_y
\t
gyro_z"
);
safe_sprintf_cat
(
&
buf
,
"
%T
ime
\t
accel_x
\t
accel_y
\t
accel_z
\t
gyro_x
\t
gyro_y
\t
gyro_z"
);
int
i
;
// Print all the recorded block parameters
...
...
@@ -209,7 +209,7 @@ void printLogging(hardware_t *hardware_struct, log_t* log_struct, parameter_t* p
// Send units header
buf
.
size
=
0
;
safe_sprintf_cat
(
&
buf
,
"s
\t
G
\t
G
\t
G
\t
rad/s
\t
rad/s
\t
rad/s"
);
// The pre-defined ones
safe_sprintf_cat
(
&
buf
,
"
&
s
\t
G
\t
G
\t
G
\t
rad/s
\t
rad/s
\t
rad/s"
);
// The pre-defined ones
safe_sprintf_cat
(
&
buf
,
units_output
.
str
);
safe_sprintf_cat
(
&
buf
,
units_param
.
str
);
safe_sprintf_cat
(
&
buf
,
"
\n
"
);
...
...
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