mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 23:43:34 +08:00
Fix code style
(Ran AStyle)
This commit is contained in:
@@ -103,8 +103,8 @@ void LandDetector::cycle()
|
||||
}
|
||||
|
||||
LandDetectionResult current_state = update();
|
||||
bool landDetected = (current_state==LANDDETECTION_RES_LANDED);
|
||||
bool freefallDetected = (current_state==LANDDETECTION_RES_FREEFALL);
|
||||
bool landDetected = (current_state == LANDDETECTION_RES_LANDED);
|
||||
bool freefallDetected = (current_state == LANDDETECTION_RES_FREEFALL);
|
||||
|
||||
// publish if land detection state has changed
|
||||
if ((_landDetected.landed != landDetected) || (_landDetected.freefall != freefallDetected)) {
|
||||
|
||||
Reference in New Issue
Block a user