Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
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
Ardupilot
Commits
bdf0a2da
Commit
bdf0a2da
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Plane: log mode number as well as mode string
this makes graphing mode changes easier
parent
a64d0677
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
ArduPlane/Log.pde
+4
-2
4 additions, 2 deletions
ArduPlane/Log.pde
with
4 additions
and
2 deletions
ArduPlane/Log.pde
+
4
−
2
View file @
bdf0a2da
...
...
@@ -347,6 +347,7 @@ static void Log_Write_Nav_Tuning()
struct
PACKED
log_Mode
{
LOG_PACKET_HEADER
;
uint8_t
mode
;
uint8_t
mode_num
;
};
// Write a mode packet. Total length : 5 bytes
...
...
@@ -354,7 +355,8 @@ static void Log_Write_Mode(uint8_t mode)
{
struct
log_Mode
pkt
=
{
LOG_PACKET_HEADER_INIT
(
LOG_MODE_MSG
),
mode
:
mode
mode
:
mode
,
mode_num
:
mode
};
DataFlash
.
WriteBlock
(
&
pkt
,
sizeof
(
pkt
));
}
...
...
@@ -442,7 +444,7 @@ static const struct LogStructure log_structure[] PROGMEM = {
{
LOG_NTUN_MSG
,
sizeof
(
log_Nav_Tuning
),
"NTUN"
,
"CICCcc"
,
"Yaw,WpDist,TargBrg,NavBrg,AltErr,Arspd"
},
{
LOG_MODE_MSG
,
sizeof
(
log_Mode
),
"MODE"
,
"M"
,
"Mode"
},
"MODE"
,
"M
B
"
,
"Mode"
},
{
LOG_CURRENT_MSG
,
sizeof
(
log_Current
),
"CURR"
,
"hhhHf"
,
"Thr,Volt,Curr,Vcc,CurrTot"
},
{
LOG_COMPASS_MSG
,
sizeof
(
log_Compass
),
...
...
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