Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions MAVProxy/modules/mavproxy_smartflight/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
MAVProxy planner module using Shearwater's SmartFLight
"""

from MAVProxy.mavproxy import MPState
from MAVProxy.modules.lib.mp_module import MPModule
from MAVProxy.modules.mavproxy_smartflight.smart_flight_planner import SmartFlightPlannerModule


def init(mpstate: MPState) -> MPModule:
"""
Initialise module
"""
return SmartFlightPlannerModule(mpstate)
42 changes: 42 additions & 0 deletions MAVProxy/modules/mavproxy_smartflight/sample_request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"uuid": "b96bc7d9-64b7-4514-8872-87c3cb1343c8",
"timestamp": "2025-03-27T18:16:23.085120105Z",
"optimizations": {
"distance": true,
"travelTime": false,
"energy": false
},
"missionArea": [
[-2.762896607005553, 0.3769077785605608, -0.004503030869459154],
[-2.757549693352563, 0.3791982258863021, -0.01972273899652194],
[-2.752466132836194, 0.3747301570484002, -0.010771438825352177],
[-2.7510952571740943, 0.37155279678932207, -0.004601780589939238],
[-2.7542835677596282, 0.3705956166187829, -0.0063753732667141275],
[-2.7600156353739527, 0.37145023217331896, -0.015737467046943055]
],
"keepOutAreas": [],
"altitudeLimits": {
"minAgl": 75,
"maxAgl": 250,
"maxAmsl": 2000
},
"vehicle": {
"id": "genFixed",
"cruiseSpeed": 12,
"maxFlightSpeed": 30,
"minFlightSpeed": 8,
"maxClimbRate": 3.5,
"maxDescentRate": -5
},
"departure": {
"latitude": 0.3718333545048341,
"longitude": -2.7562547518414,
"height": 102.71117070544514
},
"destination": {
"latitude": 0.37680742503201187,
"longitude": -2.762405108814286,
"height": 100.328369140625
},
"departureTime": 1743098400
}
Loading
Loading