-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create geofence that uses a circle instead of a polygon #135
Comments
Hmm I think it is supported in the Until then, I'm afraid you have to build MAVSDK from sources. |
So for now if I dont build from source would you suggest that creating a polygon based of the center and radius of the circle is my best bet, and if so should I worry about a max set of points for the polygon or anything like that? |
I think that in MAVLink, the geofence uses the mission protocol, which is extremely inefficient (it requires one round-trip per item). So yeah, if you don't want to compiles the |
Just making sure I understand this but there is no other way to pass the mavlink command I mentioned above correct? There is no method of Mavlink Passthrough for mavsdk java correct? Also when will MavSDK v2 be released? |
Hmm maybe by hijacking the mission_raw plugin? Not sure though. I would just compile from sources.
It is not planned, but the roadmap to v2 is here: mavlink/MAVSDK#2002 |
Hypothetically if I did want to build from source would I just need to pull this repo and update the proto files for this repo to use the main branch of MAVSDK-Proto, and then build it ? Or would I need to also to some other steps to get this properly built from source? |
You need to build https://github.com/mavlink/MAVSDK for your platform (that's where |
Yes I am building for android, will go through the steps you mentioned. |
I would say that the first step is to cross-compile MAVSDK for Android. Check how we do it in CI: https://github.com/mavlink/MAVSDK/blob/main/.github/workflows/main.yml#L385. You should be able to run almost exactly that (minus some CI tricks and environment variables, of course). |
Hey team!
I am currently looking into passing a keepout geofence circle using the geofence functionality through the System class (system.getGeofence()). So far I am able to pass polygons to be used as geo fences (both inclusive and exclusive). However I was hoping there was a way to pass a center point (lat, long) and radius , like a Drawingcircle object, as a geofence but I do not see that as an ability. For reference I am trying to pass something like this mavlink command https://mavlink.io/en/messages/common.html#MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION , does the java mavsdk allow the end user to pass this somehow?
Currently the only option I can think of is creating a polygon in the shape of a circle mathematically but I am not sure if there are other ways to do this either. Also I know for mavsdk c++ has a mavlink passthrough class but I dont think that is available for the mavsdk java library correct?
The text was updated successfully, but these errors were encountered: