mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 03:31:37 +08:00
GPS organize status print
This commit is contained in:
committed by
Lorenz Meier
parent
ff626a19f6
commit
94dd6abd9f
@@ -876,8 +876,6 @@ GPS::print_status()
|
|||||||
PX4_INFO("sat info: %s", (_p_report_sat_info != nullptr) ? "enabled" : "disabled");
|
PX4_INFO("sat info: %s", (_p_report_sat_info != nullptr) ? "enabled" : "disabled");
|
||||||
|
|
||||||
if (_report_gps_pos.timestamp != 0) {
|
if (_report_gps_pos.timestamp != 0) {
|
||||||
print_message(_report_gps_pos);
|
|
||||||
|
|
||||||
if (_helper) {
|
if (_helper) {
|
||||||
PX4_INFO("rate position: \t\t%6.2f Hz", (double)_helper->getPositionUpdateRate());
|
PX4_INFO("rate position: \t\t%6.2f Hz", (double)_helper->getPositionUpdateRate());
|
||||||
PX4_INFO("rate velocity: \t\t%6.2f Hz", (double)_helper->getVelocityUpdateRate());
|
PX4_INFO("rate velocity: \t\t%6.2f Hz", (double)_helper->getVelocityUpdateRate());
|
||||||
@@ -888,6 +886,7 @@ GPS::print_status()
|
|||||||
PX4_INFO("rate RTCM injection:\t%6.2f Hz", (double)_rate_rtcm_injection);
|
PX4_INFO("rate RTCM injection:\t%6.2f Hz", (double)_rate_rtcm_injection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_message(_report_gps_pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_instance == Instance::Main && _secondary_instance) {
|
if (_instance == Instance::Main && _secondary_instance) {
|
||||||
|
|||||||
Reference in New Issue
Block a user