AisManager.EnableAisAlarms(Boolean, TrackEstimationParameters) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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