mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Periph: cope with GPS without yaw accuracy
This commit is contained in:
parent
0a518077ca
commit
dcab2d2f2a
@ -2123,7 +2123,7 @@ void AP_Periph_FW::send_relposheading_msg() {
|
||||
relpos.relative_distance_m = relative_distance;
|
||||
relpos.relative_down_pos_m = relative_down_pos;
|
||||
relpos.reported_heading_acc_deg = reported_heading_acc;
|
||||
relpos.reported_heading_acc_available = true;
|
||||
relpos.reported_heading_acc_available = !is_zero(relpos.reported_heading_acc_deg);
|
||||
uint8_t buffer[ARDUPILOT_GNSS_RELPOSHEADING_MAX_SIZE] {};
|
||||
const uint16_t total_size = ardupilot_gnss_RelPosHeading_encode(&relpos, buffer, !periph.canfdout());
|
||||
canard_broadcast(ARDUPILOT_GNSS_RELPOSHEADING_SIGNATURE,
|
||||
|
Loading…
Reference in New Issue
Block a user