In _scripts/demo_commandernode.py, added an additional argument called --is-maryland to indicate whether the mission that is being flown is for the competition in Maryland (and not an ARC field mission).
Updated _siminstructions.md to add the --is-maryland flag.
Updated _uavf_2024/gnc/commandernode.py by adding two new methods, generate_legal_waypoints(self, waypoints: list) and get_closest_intermediate_point(self, destination_wp). Added a new instance variable, self.default_altitude_asml = 23.0 to replace the global TAKEOFF_ALTITUDE = 20.0. Added docstrings to many of the existing methods to improve readability.
Created the _tests/gnc/stay_inside_geofencetests.py file which contains tests to verify the correctness of my generate_legal_waypoints() function.
Added the _uavf_2024/gnc/data/geofencetest.gpx file which should be the gpx file that is provided when you test my code in simulation.
Unrelated to geofence but included in this PR
Modified _tests/gnc/opportunistic_imagingtests.py to improve readability
Summary
--is-maryland
to indicate whether the mission that is being flown is for the competition in Maryland (and not an ARC field mission).--is-maryland
flag.generate_legal_waypoints(self, waypoints: list)
andget_closest_intermediate_point(self, destination_wp)
. Added a new instance variable,self.default_altitude_asml = 23.0
to replace the globalTAKEOFF_ALTITUDE = 20.0
. Added docstrings to many of the existing methods to improve readability.generate_legal_waypoints()
function.Unrelated to geofence but included in this PR
Test Plan
Issues