You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will make it easy to copy the geofence to the sitl_basic.py script.
How do we want to capture the altitude??? As a separate list? Should we add alt to the geofence vertices (i.e., make it[lat, lon, alt] for each vertex)? This will require us to modify the point-in-poly function (which isn't a big deal).
Add an altitude check to the geofence check. (this will also apply to establishing the home location).
Maybe we should write a "checkGeofence" function, since it looks like it will be called both during pre-arm and in-flight.
FUTURE: Migrate the "simple" Cesium app's functionality to be included in m3c.
FUTURE: The geofence coordinates should be provided by the GCS (as an input). Right now, the coordinates are hard-coded.
Pre-Arm Stuff
Does our code truly hang when running dronekit's pre-arm checks?
If not, let's just re-implement the checks.
If yes:
Make a list of all of dronekit's pre-arm checks.
Can we manually check each of these? Which one(s) is/are failing?
If a particular check is being failed and isn't critical, we may decide to continue disabling pre-arm checks
Other Future Items:
FUTURE: Check the GPS fix_type during the execution of the mission (to make sure we aren't losing GPS signal).
This would go within our main control thread (the one that checks if we've completed our current task).
We'll need a way of communicating this failure (e.g., via a ROS message).
FUTURE: Check where we need clearCmds(), pass in length of cmds in ROS status msg
To get the attribute you must first download the Vehicle.commands(). The attribute has a value of None until Vehicle.commands() has been downloaded and the autopilot has set an initial home location (typically where the vehicle first gets GPS lock).
The text was updated successfully, but these errors were encountered:
Thanks, Dowon! I made some edits in the original post above.
Also, I have posted the revised sitl_basic.py script. It now has some basic geofence functionality (checking if point is within polygon) and has modified the way we establish the home location.
Here is my rough list of to-dos from our meeting. Please feel free to add to or edit the list
Related to
getHomeLocation()
:dronekit.GPSInfo
to checkfix_type
== 3.sitl_basic.py
script now checks this valueEstablishing Threads:
rospy.rate sleep
instead oftime.sleep
Related to Geofence:
geoIsPointInPoly()
at the top of thesitl_basic.py
function.distance_functions.py
orcommon.py
).isPointInPoly
(https://veroviz.org/docs/_modules/veroviz/utilities.html#isPointInPoly)getHomeLocation()
function.sitl_basic.py
script.alt
to the geofence vertices (i.e., make it[lat, lon, alt]
for each vertex)? This will require us to modify the point-in-poly function (which isn't a big deal).Pre-Arm Stuff
Other Future Items:
FUTURE: Check the GPS
fix_type
during the execution of the mission (to make sure we aren't losing GPS signal).FUTURE: Check where we need
clearCmds()
, pass in length of cmds in ROS status msgFYI
The text was updated successfully, but these errors were encountered: