forked from Archive/PX4-Autopilot
AStyle: Fixed file formatting
This commit is contained in:
parent
f1587da4c4
commit
e40d207311
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue