Skip to main content

ResQ.Simulation.VirtualDrone

VirtualDrone(string, Location, CoordinationHceClient, InfrastructureApiClient) Constructor

Initializes a new instance of the VirtualDrone class.
public VirtualDrone(string droneId, ResQ.Core.Location startLocation, ResQ.Clients.CoordinationHceClient hce, ResQ.Clients.InfrastructureApiClient infra);

Parameters

droneId System.String Unique identifier for this drone. startLocation ResQ.Core.Location Initial geographic position of the drone. hce ResQ.Clients.CoordinationHceClient Client for the coordination-hce service. infra ResQ.Clients.InfrastructureApiClient Client for the infrastructure-api service.

Exceptions

System.ArgumentException
Thrown when droneId is empty.
System.ArgumentOutOfRangeException
Thrown when coordinates or altitude are invalid.