OpenCPN Partial API docs
Loading...
Searching...
No Matches
own_ship.cpp File Reference

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.
 

Detailed Description

Implement own_ship.h – measured values for position, course, speed etc.

Definition in file own_ship.cpp.

Variable Documentation

◆ bGPSValid

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.

◆ gCog

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.

◆ gHdm

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.

◆ gHdt

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.

◆ gLat

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.

◆ gLon

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.

◆ gSog

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.

◆ gVar

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.