aalf
(aalf)
1
hi there, i just started using lua i’m wondering,
![image](https://discuss.ardupilot.org/uploads/default/original/3X/0/5/05d3673ece271c74949a73e9f471dd4aec0334d1.png)
![image](https://discuss.ardupilot.org/uploads/default/original/3X/3/8/38e5ffe23f8e4ce706ba9bfb718f4ff2e0f6853d.png)
is there any way that i could use/pull the value from the ardupilot to lua? i think this is mavlink?
umbcorp
(umbcorp)
2
local wp_dist = vehicle:get_wp_distance_m()
this should give your distance to next waypoint
1 Like