Class GPSSensor
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
Simulates the GPS Sensor onboard a satelite
public class GPSSensor : Sensor
- Inheritance
-
GPSSensor
- Inherited Members
Constructors
GPSSensor()
Base class for initialization
public GPSSensor()
Fields
ClockBias
[s] The bias on the clock
[EditableVariable("s", 0, false, "", "")]
public double ClockBias
Field Value
ECIPosition
Satelite Initial Position ECEF
[EditableVariable("m", true, "", "")]
public Vector3 ECIPosition
Field Value
LLA
Satellite Position in LLA format
public GeodeticElements LLA
Field Value
Out_GPSReceiverMsg
Incoming GPS messages
public readonly GPSReceiverMessage Out_GPSReceiverMsg
Field Value
Out_NavTransMsg
Output translational state estimate
public readonly NavTransMessage Out_NavTransMsg
Field Value
Properties
Altitude
[m] The altitude estimated
[EditableVariable("m", true, "", "")]
public double Altitude { get; }
Property Value
IsActive
Node status (true = ON, false = OFF)
public bool IsActive { get; }
Property Value
Latitude
[deg] The latitude estimated
[EditableVariable("deg", true, "", "")]
public double Latitude { get; }
Property Value
Longitude
[deg] The longitude estimated
[EditableVariable("deg", true, "", "")]
public double Longitude { get; }
Property Value
Methods
IsChildTypeSupported(Type)
Returns true if 'Component' type is a supported child
protected override bool IsChildTypeSupported(Type type)
Parameters
type
Typea 'Component' type
Returns
OnBegin(double)
Called when the 'Component' is beginning
protected override void OnBegin(double time)
Parameters
time
doublecurrent time (seconds)
OnDecodeMetadata(JObject)
Called after the "Component" was loaded to handle additional metadata.
protected override void OnDecodeMetadata(JObject metadata)
Parameters
metadata
JObject
OnEncodeMetadata(JObject)
Called while the "Component" is being saved to save additional metadata.
protected override JObject OnEncodeMetadata(JObject metadata)
Parameters
metadata
JObject
Returns
- JObject
OnReset(double)
Called when the 'Component' is reset from a simulation
protected override void OnReset(double time)
Parameters
time
doublereset time (seconds)
OnUpdate(double, double)
Called when the 'Component' should update
protected override void OnUpdate(double time, double step)