mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 00:41:36 +08:00
AStyle: Fixed file formatting
This commit is contained in:
@@ -21,4 +21,4 @@ land_detector start fixedwing
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Misc apps
|
# Misc apps
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ void LandDetector::start()
|
|||||||
//Advertise the first land detected uORB
|
//Advertise the first land detected uORB
|
||||||
_landDetected.timestamp = hrt_absolute_time();
|
_landDetected.timestamp = hrt_absolute_time();
|
||||||
_landDetected.landed = false;
|
_landDetected.landed = false;
|
||||||
_landDetectedPub = orb_advertise(ORB_ID(vehicle_land_detected), &_landDetected);
|
_landDetectedPub = orb_advertise(ORB_ID(vehicle_land_detected), &_landDetected);
|
||||||
|
|
||||||
//Initialize land detection algorithm
|
//Initialize land detection algorithm
|
||||||
initialize();
|
initialize();
|
||||||
|
|||||||
@@ -98,4 +98,4 @@ private:
|
|||||||
bool _taskIsRunning; /**< task has reached main loop and is currently running */
|
bool _taskIsRunning; /**< task has reached main loop and is currently running */
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__LAND_DETECTOR_H__
|
#endif //__LAND_DETECTOR_H__
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ bool MulticopterLandDetector::update()
|
|||||||
updateSubscriptions();
|
updateSubscriptions();
|
||||||
|
|
||||||
//Only trigger flight conditions if we are armed
|
//Only trigger flight conditions if we are armed
|
||||||
if(!_arming.armed) {
|
if (!_arming.armed) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user