// Help text which is shown both in the status text area prior to pressing a cal button and in the
}
// pre-calibration dialog.
readonlypropertystringboardRotationText:qsTr("If the orientation is in the direction of flight, select ROTATION_NONE.")
readonlypropertystringcompassRotationText:qsTr("If the orientation is in the direction of flight, select ROTATION_NONE.")
readonlypropertystringcompassHelp:qsTr("For Compass calibration you will need to rotate your vehicle through a number of positions. Click Ok to start calibration.")
readonlypropertystringgyroHelp:qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still. Click Ok to start calibration.")
readonlypropertystringaccelHelp:qsTr("For Accelerometer calibration you will need to place your vehicle on all six sides on a perfectly level surface and hold it still in each orientation for a few seconds. Click Ok to start calibration.")
readonlypropertystringlevelHelp:qsTr("To level the horizon you need to place the vehicle in its level flight position and press OK.")
readonlypropertystringairspeedHelp:qsTr("For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor. Do not touch the sensor or obstruct any holes during the calibration.")
readonlypropertystringstatusTextAreaDefaultText:qsTr("Start the individual calibration steps by clicking one of the buttons to the left.")
// Used to pass what type of calibration is being performed to the preCalibrationDialog
propertystringpreCalibrationDialogType
// Used to pass help text to the preCalibrationDialog dialog
showMessage(qsTr("Calibration Cancel"),qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds."),0)
}else{
hideDialog()
}
}
}
Component.onCompleted:{
varusingUDP=controller.usingUDPLink()
if(usingUDP&&!_wifiReliableForCalibration){
showMessage("Sensor Calibration","Performing sensor calibration over a WiFi connection is known to be unreliable. You should disconnect and perform calibration using a direct USB connection instead.",StandardButton.Ok)
/// Page for sensor calibration. This control is used within the SensorsComponent control and can also be used
/// standalone for custom uis. When using standardalone you can use the various show* bools to show/hide what you want.
Item{
id:_root
propertyvarqgcView///< QGCView must be passed in
propertyboolshowSensorCalibrationCompass:true///< true: Show this calibration button
propertyboolshowSensorCalibrationGyro:true///< true: Show this calibration button
propertyboolshowSensorCalibrationAccel:true///< true: Show this calibration button
propertyboolshowSensorCalibrationLevel:true///< true: Show this calibration button
propertyboolshowSensorCalibrationAirspeed:true///< true: Show this calibration button
propertyboolshowSetOrientations:true///< true: Show this calibration button
propertyboolshowNextButton:false///< true: Show Next button which will signal nextButtonClicked
signalnextButtonClicked
// Help text which is shown both in the status text area prior to pressing a cal button and in the
// pre-calibration dialog.
readonlypropertystringboardRotationText:qsTr("If the orientation is in the direction of flight, select ROTATION_NONE.")
readonlypropertystringcompassRotationText:qsTr("If the orientation is in the direction of flight, select ROTATION_NONE.")
readonlypropertystringcompassHelp:qsTr("For Compass calibration you will need to rotate your vehicle through a number of positions. Click Ok to start calibration.")
readonlypropertystringgyroHelp:qsTr("For Gyroscope calibration you will need to place your vehicle on a surface and leave it still. Click Ok to start calibration.")
readonlypropertystringaccelHelp:qsTr("For Accelerometer calibration you will need to place your vehicle on all six sides on a perfectly level surface and hold it still in each orientation for a few seconds. Click Ok to start calibration.")
readonlypropertystringlevelHelp:qsTr("To level the horizon you need to place the vehicle in its level flight position and press OK.")
readonlypropertystringairspeedHelp:qsTr("For Airspeed calibration you will need to keep your airspeed sensor out of any wind and then blow across the sensor. Do not touch the sensor or obstruct any holes during the calibration.")
readonlypropertystringstatusTextAreaDefaultText:qsTr("Start the individual calibration steps by clicking one of the buttons to the left.")
// Used to pass what type of calibration is being performed to the preCalibrationDialog
propertystringpreCalibrationDialogType
// Used to pass help text to the preCalibrationDialog dialog
showMessage(qsTr("Calibration Cancel"),qsTr("Waiting for Vehicle to response to Cancel. This may take a few seconds."),0)
}else{
hideDialog()
}
}
}
Component.onCompleted:{
varusingUDP=controller.usingUDPLink()
if(usingUDP&&!_wifiReliableForCalibration){
showMessage("Sensor Calibration","Performing sensor calibration over a WiFi connection is known to be unreliable. You should disconnect and perform calibration using a direct USB connection instead.",StandardButton.Ok)