minCourseChangeDegrees property

double get minCourseChangeDegrees

Get the minimum course change that triggers delivery.

Returns

  • double: The minimum course change in degrees that triggers delivery. 0 or less means the trigger is disabled.

See also:

Implementation

double get minCourseChangeDegrees {
  final OperationResult resultString = objectMethod(
    pointerId,
    'PositionDataDeliveryPolicy',
    'minCourseChangeDegrees',
  );

  return (resultString['result'] as num).toDouble();
}
set minCourseChangeDegrees (double value)

Set the minimum course change that triggers delivery.

The change is the shorter way round the compass, so a heading going from 359 degrees to 1 degree counts as 2 degrees, not 358. It is measured against the last position that was delivered. 0 or less disables the trigger. The new value applies from the next sample.

A value that is not a number counts as 0, and an infinite value as the largest finite threshold.

Parameters

  • value: (double) Minimum course change in degrees. 0 or less disables the trigger.

See also:

Implementation

set minCourseChangeDegrees(double value) {
  objectMethod(
    pointerId,
    'PositionDataDeliveryPolicy',
    'setMinCourseChangeDegrees',
    args: DataDeliveryPolicy._clampedThreshold(value),
  );
}