Skip to content

Commit

Permalink
AP_Mount: Siyi debug of position sent
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jul 4, 2024
1 parent ab6a516 commit cd605e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/AP_Mount/AP_Mount_Siyi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ void AP_Mount_Siyi::update()
if (AP::rtc().get_utc_usec(utc_usec) &&
send_packet(SiyiCommandId::SET_TIME, (const uint8_t *)&utc_usec, sizeof(utc_usec))) {
sent_time_count++;
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Siyi: sent UTC time %llu", (unsigned long long)utc_usec);
}
}
#endif
Expand Down Expand Up @@ -1211,6 +1212,8 @@ void AP_Mount_Siyi::send_attitude_position(void)
position.alt_ellipsoid = position.alt_msl - undulation*100;

send_packet(SiyiCommandId::POSITION_DATA, (const uint8_t *)&position, sizeof(position));

GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Siyi: lat:%ld lon:%ld alt:%ld", (long)position.lat, (long)position.lon, (long)position.alt_msl);
}

#endif // HAL_MOUNT_SIYI_ENABLED

0 comments on commit cd605e9

Please sign in to comment.