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
4b8c7201
Commit
4b8c7201
authored
8 years ago
by
Paul Riseborough
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
sdlog2: add logging of ekf2 internal fault message
parent
af9a7a39
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
src/modules/sdlog2/sdlog2.c
+1
-1
1 addition, 1 deletion
src/modules/sdlog2/sdlog2.c
src/modules/sdlog2/sdlog2_messages.h
+2
-2
2 additions, 2 deletions
src/modules/sdlog2/sdlog2_messages.h
with
3 additions
and
3 deletions
src/modules/sdlog2/sdlog2.c
+
1
−
1
View file @
4b8c7201
...
...
@@ -2019,7 +2019,7 @@ int sdlog2_thread_main(int argc, char *argv[])
memcpy
(
&
(
log_msg
.
body
.
log_EST0
.
s
),
buf
.
estimator_status
.
states
,
maxcopy0
);
log_msg
.
body
.
log_EST0
.
n_states
=
buf
.
estimator_status
.
n_states
;
log_msg
.
body
.
log_EST0
.
nan_flags
=
buf
.
estimator_status
.
nan_flags
;
log_msg
.
body
.
log_EST0
.
hea
lt
h
_flags
=
buf
.
estimator_status
.
hea
lt
h
_flags
;
log_msg
.
body
.
log_EST0
.
fau
lt_flags
=
buf
.
estimator_status
.
filter_fau
lt_flags
;
log_msg
.
body
.
log_EST0
.
timeout_flags
=
buf
.
estimator_status
.
timeout_flags
;
LOGBUFFER_WRITE_AND_COUNT
(
EST0
);
...
...
This diff is collapsed.
Click to expand it.
src/modules/sdlog2/sdlog2_messages.h
+
2
−
2
View file @
4b8c7201
...
...
@@ -396,7 +396,7 @@ struct log_EST0_s {
float
s
[
12
];
uint8_t
n_states
;
uint8_t
nan_flags
;
uint
8
_t
hea
lt
h
_flags
;
uint
16
_t
fau
lt_flags
;
uint8_t
timeout_flags
;
};
...
...
@@ -662,7 +662,7 @@ static const struct log_format_s log_formats[] = {
LOG_FORMAT_S
(
TEL1
,
TEL
,
"BBBBHHBQ"
,
"RSSI,RemRSSI,Noise,RemNoise,RXErr,Fixed,TXBuf,HbTime"
),
LOG_FORMAT_S
(
TEL2
,
TEL
,
"BBBBHHBQ"
,
"RSSI,RemRSSI,Noise,RemNoise,RXErr,Fixed,TXBuf,HbTime"
),
LOG_FORMAT_S
(
TEL3
,
TEL
,
"BBBBHHBQ"
,
"RSSI,RemRSSI,Noise,RemNoise,RXErr,Fixed,TXBuf,HbTime"
),
LOG_FORMAT
(
EST0
,
"ffffffffffffBB
B
B"
,
"s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,nStat,fNaN,f
Hea
lt
h
,fTOut"
),
LOG_FORMAT
(
EST0
,
"ffffffffffffBB
H
B"
,
"s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,nStat,fNaN,f
Fau
lt,fTOut"
),
LOG_FORMAT
(
EST1
,
"ffffffffffffffff"
,
"s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,s26,s27"
),
LOG_FORMAT
(
EST2
,
"ffffffffffffHH"
,
"P0,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,GCHK,CTRL"
),
LOG_FORMAT
(
EST3
,
"ffffffffffffffff"
,
"P12,P13,P14,P15,P16,P17,P18,P19,P20,P21,P22,P23,P24,P25,P26,P27"
),
...
...
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