Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
068b5a54
Commit
068b5a54
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Replay: prevent float exception in log writing
parent
f4fc910f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tools/Replay/Replay.pde
+4
-4
4 additions, 4 deletions
Tools/Replay/Replay.pde
with
4 additions
and
4 deletions
Tools/Replay/Replay.pde
+
4
−
4
View file @
068b5a54
...
@@ -462,12 +462,12 @@ void loop()
...
@@ -462,12 +462,12 @@ void loop()
float
posN
=
(
float
)(
posNED
.
x
);
// metres North
float
posN
=
(
float
)(
posNED
.
x
);
// metres North
float
posE
=
(
float
)(
posNED
.
y
);
// metres East
float
posE
=
(
float
)(
posNED
.
y
);
// metres East
float
posD
=
(
float
)(
posNED
.
z
);
// metres Down
float
posD
=
(
float
)(
posNED
.
z
);
// metres Down
int16_t
gyrX
=
(
int16_
t
)(
6000
*
degrees
(
gyroBias
.
x
));
// centi-deg/min
float
gyrX
=
(
floa
t
)(
6000
*
degrees
(
gyroBias
.
x
));
// centi-deg/min
int16_t
gyrY
=
(
int16_
t
)(
6000
*
degrees
(
gyroBias
.
y
));
// centi-deg/min
float
gyrY
=
(
floa
t
)(
6000
*
degrees
(
gyroBias
.
y
));
// centi-deg/min
int16_t
gyrZ
=
(
int16_
t
)(
6000
*
degrees
(
gyroBias
.
z
));
// centi-deg/min
float
gyrZ
=
(
floa
t
)(
6000
*
degrees
(
gyroBias
.
z
));
// centi-deg/min
// print EKF1 data packet
// print EKF1 data packet
fprintf
(
ekf1f
,
"%.3f %u %d %d %u %.2f %.2f %.2f %.2f %.2f %.2f %
d %d %d
\n
"
,
fprintf
(
ekf1f
,
"%.3f %u %d %d %u %.2f %.2f %.2f %.2f %.2f %.2f %
.0f %.0f %.0f
\n
"
,
hal
.
scheduler
->
millis
()
*
0.001
f
,
hal
.
scheduler
->
millis
()
*
0.001
f
,
hal
.
scheduler
->
millis
(),
hal
.
scheduler
->
millis
(),
roll
,
roll
,
...
...
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