Closed aaronj0 closed 2 years ago
@maximusron which version of mavsdk do you have installed?
@maximusron which version of mavsdk do you have installed?
I am currently using mavsdk 0.37, the development of the mavsdk scripts in our software had started quite a while back. The code I'm using for the geofence upload is from the examples code https://github.com/mavlink/MAVSDK/tree/develop/examples/geofence_inclusion found on the mavsdk documentation for version 0.37.
With that old version you still need to link to each plugin:
target_link_libraries(your_binary
MAVSDK::mavsdk_geofence
MAVSDK::mavsdk
)
I assume you're missing MAVSDK::mavsdk_geofence
?
With v1.0 this changed: https://mavsdk.mavlink.io/main/en/cpp/api_changes.html#10
Yes, that seemed to be the problem, thank you
I am trying to upload a geofence in my mavsdk script. Im getting errors while building. i suspect it has something to do with the constructor itself as other parts of the code like the structures itself do not give any errors.
Here is a snippet of the function I am using:
The mavsdk::System, Action and Telemetry constructors are initialised properly and the mavsdk::System object is named
system_