- The
SunSensorclass simulates a sun sensor. - The
SunSensorclass calculates and returns the observed sun vector with noise.
sun_sensor.cpp, sun_sensor.hpp: Definitions and declarations of the classsun_sensor.ini: Initialization fileplot_sun_sensor.py: An example of a Python script to plot sun sensor output
- Set the parameters in
sun_sensor.ini.-
quaternion_b2c: Frame conversion quaternion from body to component frame. -
field_of_view_deg: Field of view of the sun sensor -
white_noise_standard_deviation_deg: White noise standard deviation -
bias_standard_deviation_deg: Bias noise standard deviation -
intensity_lower_threshold_percent: Lower threshold of intensity to generate observation result -
Other parameters
- Parameters for the
Componentclass - Parameters for the
PowerPortclass
- Parameters for the
-
- Create an instance by using the initialization function
InitSunSensor - Use the
Get*function to get angular velocity information.
- The sun direction vector is converted to the component frame.
- Judge the sun is inside the field of view of the sun sensor.
- Add observation noises.
- NA
- NA
- The output result obtained by the default initial settings.
- The figure is generated by the Python script.
