-
Notifications
You must be signed in to change notification settings - Fork 17.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_GPS: allow logging of UBX-RXM-RTCM #26806
base: master
Are you sure you want to change the base?
Conversation
0019658
to
7c11b32
Compare
nice! flight logs would be useful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main thing we need to verify is this quite extensive logging does actually find the issue. Then decide if it should be compiled in by default
libraries/AP_GPS/AP_GPS.cpp
Outdated
// @Values: 0:Ignore,1:Always log | ||
// @RebootRequired: True | ||
// @User: Advanced | ||
AP_GROUPINFO("_RTCM_DATA", 34, AP_GPS, _rtcm_data, 0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could have this as a bit in GPS_DRV_OPTIONS I think
@@ -1633,7 +1641,7 @@ bool AP_GPS::parse_rtcm_injection(mavlink_channel_t chan, const mavlink_gps_rtcm | |||
const uint32_t crc = crc_crc32(0, buf, len); | |||
|
|||
#if HAL_LOGGING_ENABLED | |||
AP::logger().WriteStreaming("RTCM", "TimeUS,Chan,RTCMId,Len,CRC", "s#---", "F----", "QBHHI", | |||
AP::logger().WriteStreaming("RTKR", "TimeUS,Chan,RTCMId,Len,CRC", "s#---", "F----", "QBHHI", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to document this message (did I leave out docs? why didn't CI catch it?)
rtcm.sent_idx = (rtcm.sent_idx+1) % ARRAY_SIZE(rtcm.sent_crc); | ||
|
||
if (buf != nullptr && len > 0) { | ||
#if HAL_LOGGING_ENABLED | ||
AP::logger().WriteStreaming("RTKT", "TimeUS,Chan,RTCMId,Len,CRC", "s#---", "F----", "QBHHI", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs needed
Ping @andyp1per let's not forget this one |
fd0978d
to
794a35d
Compare
No description provided.