Receiving wp_dist value in lua

hi there, i just started using lua i’m wondering,
image
image


is there any way that i could use/pull the value from the ardupilot to lua? i think this is mavlink?

local wp_dist = vehicle:get_wp_distance_m()

this should give your distance to next waypoint

1 Like