Edit

Share via


AisManager.EnableAisAlarms(Boolean, TrackEstimationParameters) Method

Definition

Enable automatic generation of AIS alarms. This method will start a background thread that regularly evaluates all ships in vicinity for possibly dangerous proximity. It uses an estimate of a track for each ship to find the closest point of approach (CPA) and the time to that closest point (TCPA). When this is enabled, RelativePosition will be regularly updated for all targets.

public void EnableAisAlarms (bool enable, Iot.Device.Nmea0183.Ais.TrackEstimationParameters? parameters = default);
member this.EnableAisAlarms : bool * Iot.Device.Nmea0183.Ais.TrackEstimationParameters -> unit
Public Sub EnableAisAlarms (enable As Boolean, Optional parameters As TrackEstimationParameters = Nothing)

Parameters

enable
Boolean

True to enable AIS alarms. The alarms will be presented by a message on the outgoing stream and a call to OnMessage

parameters
TrackEstimationParameters

Parameter set to use for the estimation

Remarks

Note 1: Since this uses a precise track estimation that includes COG change, the calculation is rather expensive. CPU performance should be monitored when in a crowded area. Algorithm improvements that cut CPU usage e.g. for stationary ships are pending. Note 2: The algorithm is experimental and should not be relied on. Also read the notes at AisManager

Applies to