Package org.orekit.gnss.attitude
Class AbstractGNSSAttitudeProvider
- java.lang.Object
-
- org.orekit.gnss.attitude.AbstractGNSSAttitudeProvider
-
- All Implemented Interfaces:
Serializable
,AttitudeProvider
,GNSSAttitudeProvider
- Direct Known Subclasses:
BeidouGeo
,BeidouMeo
,Galileo
,GenericGNSS
,Glonass
,GPSBlockIIA
,GPSBlockIIF
,GPSBlockIIR
public abstract class AbstractGNSSAttitudeProvider extends Object implements GNSSAttitudeProvider
Base class for attitude providers for navigation satellites.- Since:
- 9.2
- Author:
- Luc Maisonobe
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractGNSSAttitudeProvider(AbsoluteDate validityStart, AbsoluteDate validityEnd, ExtendedPVCoordinatesProvider sun, Frame inertialFrame)
Simple constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TimeStampedAngularCoordinates
correctedYaw(org.orekit.gnss.attitude.GNSSAttitudeContext context)
Select the /** Compute GNSS attitude with midnight/noon yaw turn correction.protected abstract <T extends org.hipparchus.RealFieldElement<T>>
TimeStampedFieldAngularCoordinates<T>correctedYaw(org.orekit.gnss.attitude.GNSSFieldAttitudeContext<T> context)
Compute GNSS attitude with midnight/noon yaw turn correction.<T extends org.hipparchus.RealFieldElement<T>>
FieldAttitude<T>getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.Attitude
getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.AbsoluteDate
validityEnd()
Get end of validity for this provider.AbsoluteDate
validityStart()
Get start of validity for this provider.
-
-
-
Constructor Detail
-
AbstractGNSSAttitudeProvider
protected AbstractGNSSAttitudeProvider(AbsoluteDate validityStart, AbsoluteDate validityEnd, ExtendedPVCoordinatesProvider sun, Frame inertialFrame)
Simple constructor.- Parameters:
validityStart
- start of validity for this providervalidityEnd
- end of validity for this providersun
- provider for Sun positioninertialFrame
- inertial frame where velocity are computed
-
-
Method Detail
-
validityStart
public AbsoluteDate validityStart()
Get start of validity for this provider.- Specified by:
validityStart
in interfaceGNSSAttitudeProvider
- Returns:
- start of validity for this provider
-
validityEnd
public AbsoluteDate validityEnd()
Get end of validity for this provider.- Specified by:
validityEnd
in interfaceGNSSAttitudeProvider
- Returns:
- end of validity for this provider
-
getAttitude
public Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude attitude on the specified date and position-velocity state
-
getAttitude
public <T extends org.hipparchus.RealFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Type Parameters:
T
- type of the field elements- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude attitude on the specified date and position-velocity state
-
correctedYaw
protected abstract TimeStampedAngularCoordinates correctedYaw(org.orekit.gnss.attitude.GNSSAttitudeContext context)
Select the /** Compute GNSS attitude with midnight/noon yaw turn correction.- Parameters:
context
- context data for attitude computation- Returns:
- corrected yaw, using inertial frame as the reference
-
correctedYaw
protected abstract <T extends org.hipparchus.RealFieldElement<T>> TimeStampedFieldAngularCoordinates<T> correctedYaw(org.orekit.gnss.attitude.GNSSFieldAttitudeContext<T> context)
Compute GNSS attitude with midnight/noon yaw turn correction.- Type Parameters:
T
- type of the field elements- Parameters:
context
- context data for attitude computation- Returns:
- corrected yaw, using inertial frame as the reference
-
-