Class MissionFile

java.lang.Object
io.fleetcoreplatform.Models.MissionFile

public class MissionFile extends Object
Acts as the structured representation of a standard drone `.plan` file. Compatible with QGroundControl mission schemas, defining flight items, geofences, and safety parameters.
  • Field Details

  • Constructor Details

    • MissionFile

      public MissionFile(MissionFile.GeoFence geoFence, MissionFile.Mission mission, String groundStation, MissionFile.RallyPoints rallyPoints)
      Initializes the root mission container.
      Parameters:
      geoFence - The bound area within which the drone is restricted.
      mission - The core sequential flight plan structure.
      groundStation - The software client producing the file (e.g., "FleetCoreServer").
      rallyPoints - Defined fallback locations for emergencies.
  • Method Details

    • toStream

      public InputStream toStream()
      Serializes the object model into a standard JSON byte stream for file writing.
      Returns:
      A valid UTF-8 input stream comprising the JSON payload.