mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 07:03:34 +08:00
Commander: Init land detector
This commit is contained in:
@@ -1423,6 +1423,7 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
/* Subscribe to land detector */
|
/* Subscribe to land detector */
|
||||||
int land_detector_sub = orb_subscribe(ORB_ID(vehicle_land_detected));
|
int land_detector_sub = orb_subscribe(ORB_ID(vehicle_land_detected));
|
||||||
struct vehicle_land_detected_s land_detector = {};
|
struct vehicle_land_detected_s land_detector = {};
|
||||||
|
land_detector.landed = true;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The home position is set based on GPS only, to prevent a dependency between
|
* The home position is set based on GPS only, to prevent a dependency between
|
||||||
|
|||||||
Reference in New Issue
Block a user