Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

andyp1per
Copy link
Collaborator

No description provided.

@tridge
Copy link
Contributor

tridge commented Apr 17, 2024

nice! flight logs would be useful

@tridge tridge removed the DevCallEU label Apr 17, 2024
Copy link
Contributor

@tridge tridge left a 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

// @Values: 0:Ignore,1:Always log
// @RebootRequired: True
// @User: Advanced
AP_GROUPINFO("_RTCM_DATA", 34, AP_GPS, _rtcm_data, 0),
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs needed

@peterbarker
Copy link
Contributor

Ping @andyp1per let's not forget this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants