OpenCPN Partial API docs
|
Implement own_ship.h – measured values for position, course, speed etc. More...
#include "model/own_ship.h"
Go to the source code of this file.
Variables | |
double | gLat |
Vessel's current latitude in decimal degrees. | |
double | gLon |
Vessel's current longitude in decimal degrees. | |
double | gCog |
Course over ground in degrees (0-359.99). | |
double | gSog |
Speed over ground in knots. | |
double | gHdt |
True heading in degrees (0-359.99). | |
double | gHdm |
Magnetic heading in degrees (0-359.99). | |
double | gVar |
Magnetic variation in degrees. | |
bool | bGPSValid |
Indicate whether the Global Navigation Satellite System (GNSS) has a valid position. | |
Implement own_ship.h – measured values for position, course, speed etc.
Definition in file own_ship.cpp.
bool bGPSValid |
Indicate whether the Global Navigation Satellite System (GNSS) has a valid position.
true = OpenCPN has obtained a current position from a GNSS receiver. false = OpenCPN unable to determine position, or no GNSS receiver is connected. Note: the variable name uses the term "GPS" for historical reasons; modern GNSS receivers can acquire data from GPS and other satellite systems.
Definition at line 34 of file own_ship.cpp.
double gCog |
Course over ground in degrees (0-359.99).
Represents actual track made good relative to ground. May be NaN if speed is too low to calculate course.
Definition at line 28 of file own_ship.cpp.
double gHdm |
Magnetic heading in degrees (0-359.99).
Represents vessel's fore-aft axis relative to magnetic north. May be NaN if heading sensor data is not available.
Definition at line 31 of file own_ship.cpp.
double gHdt |
True heading in degrees (0-359.99).
Represents vessel's fore-aft axis relative to true north. May be NaN if true heading cannot be calculated.
Definition at line 30 of file own_ship.cpp.
double gLat |
Vessel's current latitude in decimal degrees.
May represent last known position if GNSS signal is lost or position has been manually set on map.
Definition at line 26 of file own_ship.cpp.
double gLon |
Vessel's current longitude in decimal degrees.
May represent last known position if GNSS signal is lost or position has been manually set on map.
Definition at line 27 of file own_ship.cpp.
double gSog |
Speed over ground in knots.
Actual speed relative to ground from GNSS or AIS. May be NaN if speed cannot be determined.
Definition at line 29 of file own_ship.cpp.
double gVar |
Magnetic variation in degrees.
East variation is positive, West is negative. Used to convert between true and magnetic headings.
Definition at line 32 of file own_ship.cpp.