geoprimsField-grade geospatial math

Mission sorties and battery swaps

How many batteries a waypoint mission takes and where each flight ends, with the trip home against the wind counted before every swap, not just the total time divided by battery time.

Planning and education aid. Not for primary navigation. Full disclaimer

3

The mission takes 3 batteries and about 16 min of flying.

Sorties
SortieFirst waypointLast waypointFlying timeReturn time
1144.5 min0.5 min
2473.2 min2.3 min
3784.3 min1.2 min
Swap points
LatitudeLongitudeWaypointSortie
40.0027000 deg-105.0000000 deg41
40.0063000 deg-104.9859200 deg72
Flights
LatitudeLongitudeSortie
40.0000000 deg-105.0000000 deg1
40.0009000 deg-105.0000000 deg1
40.0009000 deg-104.9859200 deg1
40.0027000 deg-104.9859200 deg1
40.0027000 deg-105.0000000 deg1
40.0000000 deg-105.0000000 deg1
40.0000000 deg-105.0000000 deg2
40.0027000 deg-105.0000000 deg2
40.0045000 deg-105.0000000 deg2
40.0045000 deg-104.9859200 deg2
40.0063000 deg-104.9859200 deg2
40.0000000 deg-105.0000000 deg2
40.0000000 deg-105.0000000 deg3
40.0063000 deg-104.9859200 deg3
40.0063000 deg-105.0000000 deg3
40.0000000 deg-105.0000000 deg3
Total flying time
Time per battery to the reserve
Provenance
Computed by
drone.mission.sorties 1.1.0, core 0.1.0
Model
Flight time to the reserve F = flight time × (1 − reserve), or usable energy × (1 − reserve) / power (the endurance tool). A sortie starting at waypoint s flies home → s at the transit speed, then the path at the survey groundspeed; at each waypoint j the trip home takes d_j / (V − w) (the return-to-home tool), and the sortie ends at the last j where elapsed + trip home ≤ F. The next sortie flies out to that waypoint and carries on. Distances are WGS84 geodesics
Accuracy
Exact for straight legs at constant speeds and power, a steady headwind on every trip home, and no time for turns, climbs, or landing. Real batteries also sag in the cold and with age.
Notes
None
Cites
Leishman, J. G., Cambridge University Press, Principles of Helicopter Aerodynamics; Karney, C. F. F., Journal of Geodesy, Algorithms for geodesics

Something look off?

Your values

Showing an example. Change anything.
KML, KMZ, GPX, GeoJSON, CSV, WKT, or WKB — or drop it on the box. Read on this device.
More options 5
Drone profiles

Loading…

Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: Flight time to the reserve F = flight time × (1 − reserve), or usable energy × (1 − reserve) / power (the endurance tool). A sortie starting at waypoint s flies home → s at the transit speed, then the path at the survey groundspeed; at each waypoint j the trip home takes d_j / (V − w) (the return-to-home tool), and the sortie ends at the last j where elapsed + trip home ≤ F. The next sortie flies out to that waypoint and carries on. Distances are WGS84 geodesics

Show your work

  1. Time per battery

    flight time × (1 − reserve)

    7 min × (1 − 20%) = 5.6 min

  2. Sortie 1

    ends at the last waypoint where time flown + time home ≤ time per battery

    waypoints 1 to 4: 4.5 min flown + 0.5 min home = 5 min

  3. Sortie 2

    ends at the last waypoint where time flown + time home ≤ time per battery

    waypoints 4 to 7: 3.2 min flown + 2.3 min home = 5.5 min

  4. Sortie 3

    ends at the last waypoint where time flown + time home ≤ time per battery

    waypoints 7 to 8: 4.3 min flown + 1.2 min home = 5.5 min

  5. Batteries

    one per sortie

    3 sorties = 3

The same steps an agent gets from the MCP server with explain: true.

Accuracy: Exact for straight legs at constant speeds and power, a steady headwind on every trip home, and no time for turns, climbs, or landing. Real batteries also sag in the cold and with age.

When to use this: Use this when a mapping or inspection path is longer than one battery: it says how many batteries the job takes and where to break it, counting the trip home from each break point, which grows as the path moves away from home. Feed it the survey grid’s waypoints and your battery’s usable flight time.

Limitations: Every flight leg is flown at a constant speed with no time for takeoff, climb, turns, or landing, so leave those in the reserve. The wind is one headwind applied to every trip home, which is cautious; the trips out and along the path ignore it. A sortie ends only at a waypoint, so on long legs it can end well short of what the battery could reach. It does not check airspace, terrain, or line of sight.

Worked example: A 1.2 km, four-line grid on a 7-minute battery with a 20% reserve. Source: Hand-worked from GeographicLib distances: three sorties, swapping at waypoints 4 and 7. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Flight time per battery
7 min
Survey groundspeed
10 m/s
Home latitude
40 deg
Home longitude
-105 deg
Landing reserve (%)
20
Waypoints
40.0009, -105 40.0009, -104.98592 40.0027, -104.98592 40.0027, -105 40.0045, -105 40.0045, -104.98592 40.0063, -104.98592 40.0063, -105

You get

Batteries
3
Total flying time
16 min
Time per battery to the reserve
5.6 min

Review: Not yet independently reviewed by a Part 107 remote pilot.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.1.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 22 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Constants this tool assumes

Values you do not enter, and where each comes from.

WGS 84 semi-major axis
6378137 m — Department of Defense World Geodetic System 1984
WGS 84 inverse flattening
298.257223563 — Department of Defense World Geodetic System 1984

Sources