Edit

Share via


MagneticDeviationCorrection Class

Definition

Corrects the magnetic deviation of an electronic compass. This calculates the corrected magnetic heading from the measurement of an actual instrument and vice-versa. Neither input nor output of the calculation are true headings! The magnetic heading needs to still be converted to a true heading by adding the magnetic declination at the point of observation.

public class MagneticDeviationCorrection : IEquatable<Iot.Device.Nmea0183.MagneticDeviationCorrection>
type MagneticDeviationCorrection = class
    interface IEquatable<MagneticDeviationCorrection>
Public Class MagneticDeviationCorrection
Implements IEquatable(Of MagneticDeviationCorrection)
Inheritance
MagneticDeviationCorrection
Implements

Constructors

MagneticDeviationCorrection()

Create an instance of this class

MagneticDeviationCorrection(Stream)

Creates a magnetic deviation correction from the given XML stream

MagneticDeviationCorrection(String)

Creates a magnetic deviation correction from the given XML file

Properties

Identification

Returns the identification of the vessel for which the loaded calibration is valid

SentencesUsed

BLahafasel

Methods

CreateCorrectionTable(Stream)

Tries to calculate a correction from the given recorded file. The recorded file should contain a data set where the vessel is turning two slow circles, one with the clock and one against the clock, in calm conditions and with no current.

CreateCorrectionTable(Stream[], DateTimeOffset, DateTimeOffset)

Tries to calculate a correction from the given recorded file strems, indicating the timespan where the calibration loops were performed. The recorded file should contain a data set where the vessel is turning two slow circles, one with the clock and one against the clock, in calm conditions and with no current.

CreateCorrectionTable(String)

Tries to calculate a correction from the given recorded file. The recorded file should contain a data set where the vessel is turning two slow circles, one with the clock and one against the clock, in calm conditions and with no current.

CreateCorrectionTable(String[], DateTimeOffset, DateTimeOffset)

Tries to calculate a correction from the given recorded files, indicating the timespan where the calibration loops were performed. The recorded file should contain a data set where the vessel is turning two slow circles, one with the clock and one against the clock, in calm conditions and with no current.

Equals(MagneticDeviationCorrection)

Compares two deviation data sets for equality. Minor differences are ignored.

Equals(MagneticDeviationCorrection, String)

Compares two deviation data sets for equality. Minor differences are ignored.

FromMagneticHeading(Angle)

Convert a magnetic heading to a compass reading (to tell the helmsman what he should steer on the compass for the desired magnetic course)

Load(Stream)

Loads a previously saved calibration set

Load(String)

Loads a previously saved calibration set

Save(String, String, String, String)

Saves the calculated calibration set to a file

ToMagneticHeading(Angle)

Convert a compass reading to a magnetic heading.

Applies to