/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/importQtQuick2.3importQGroundControl1.0importQGroundControl.Controls1.0importQGroundControl.Vehicle1.0PreFlightCheckButton{name:qsTr("Global position estimate")propertyint_unhealthySensors:_activeVehicle?_activeVehicle.sensorsUnhealthyBits:0propertyvar_activeVehicle:QGroundControl.multiVehicleManager.activeVehicleon_UnhealthySensorsChanged:updateItem()on_ActiveVehicleChanged:updateItem()Component.onCompleted:updateItem()functionupdateItem(){if(!_activeVehicle){state=stateNotChecked}else{if(_unhealthySensors&Vehicle.SysStatusSensorAHRS){state=stateMajorIssue}else{state=statePassed}}}}