Subsystem_info status flags & checks: Suppress sensor failover warnings in Hardware in the loop (HITL)

This commit is contained in:
Philipp Oettershagen
2018-05-30 19:07:36 +02:00
committed by Beat Küng
parent 302cb0a285
commit 0b71c52225
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@
void set_health_flags(uint64_t subsystem_type, bool present, bool enabled, bool ok, vehicle_status_s &status)
{
PX4_INFO("set_health_flags: Type %llu pres=%u enabl=%u ok=%u", subsystem_type, present, enabled, ok);
PX4_DEBUG("set_health_flags: Type %llu pres=%u enabl=%u ok=%u", subsystem_type, present, enabled, ok);
if (present) {
status.onboard_control_sensors_present |= (uint32_t)subsystem_type;

View File

@@ -895,7 +895,7 @@ void VotedSensorsUpdate::baro_poll(vehicle_air_data_s &airdata)
bool VotedSensorsUpdate::check_failover(SensorData &sensor, const char *sensor_name, const uint64_t type)
{
if (sensor.last_failover_count != sensor.voter.failover_count()) {
if (sensor.last_failover_count != sensor.voter.failover_count() && !_hil_enabled) {
uint32_t flags = sensor.voter.failover_state();
int failover_index = sensor.voter.failover_index();