49#ifndef MODELS_SENSORS_SUN_SENSOR_H
50#define MODELS_SENSORS_SUN_SENSOR_H
108 SIGNAL(fov_horizontal,
double, 0.0)
111 SIGNAL(fov_vertical,
double, 0.0)
119 SIGNAL(mount_alignment_mf, clockwerk::Quaternion, clockwerk::Quaternion({1.0, 0.0, 0.0, 0.0}))
124 SIGNAL(seed_value,
int, 0)
130 SIGNAL(primary_radius,
double, warpos::earth_wgs84.eq_radius)
137 SIGNAL(operational_power_draw,
double, 0.0)
148 SIGNAL(gaussian_noise,
double, 0.0)
157 SIGNAL(output_time, clockwerk::Time, clockwerk::Time(0, 0))
169 SIGNAL(is_valid,
bool,
false)
172 SIGNAL(current_power_draw,
double, 0.0)
194 int16
start()
override;
#define SIGNAL(NAME, TYPE, INITIAL_VALUE)
Definition appmacros.h:27
#define START_PARAMS
Definition appmacros.h:42
#define END_OUTPUTS
Definition appmacros.h:33
#define END_PARAMS
Definition appmacros.h:47
#define START_OUTPUTS
Definition appmacros.h:28
#define END_INPUTS
Definition appmacros.h:40
#define START_INPUTS
Definition appmacros.h:35
Quaternion class for attitude representation.
Definition Quaternion.h:68
Frame class definition.
Definition Frame.h:96
Latency model.
Definition LatencyUtil.hpp:41
#define CartesianVector3
Definition mathmacros.h:43
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
CartesianVector3 _pos_SCI_ss__ss
Internal variable for the position of the Sun with respect to the sun sensor represented in sun senso...
Definition SunSensor.h:232
clockwerk::Quaternion _q
Temporary quaternion used for random rotations.
Definition SunSensor.h:239
int16 start() override
Class to execute logging.
CartesianVector3 _pos_ss_ss__ss
Internal variable for the position of the sun sensor with respect to the sun sensor represented in su...
Definition SunSensor.h:228
FrameStateSensorModel _primary_orbiter_relative_state
Model to compute the position of the primary orbiter relative to the sun sensor frame.
Definition SunSensor.h:216
SIGNAL(_mu, double, warpos::earth_wgs84.mu)
CartesianVector3 _pos_PCI_ss__ss
Internal variable for the position of the primary orbiter with respect to the sun sensor represented ...
Definition SunSensor.h:230
double _theta
Misalignment angle magnitude and unit vector.
Definition TorqueCoilModel.h:147
MarkovUncertaintyModel _sensor_noise_model
The bias and noise model for sensor output.
Definition Accelerometer.h:240
UniformRandom< double > * _uniform_random_model
Interal model for generating a uniform random number.
Definition SunSensor.h:219
OccultationModel _occult
Occultation model.
Definition SunSensor.h:210
CartesianVector3 _pos_SCI_ss__ss_unit
Definition SunSensor.h:232
FrameStateSensorModel _sun_relative_state
Model to compute the position of the sun relative to the sun sensor frame.
Definition SunSensor.h:213
Frame _sensor_frame
The sensor frame in which all measurements will be taken.
Definition Accelerometer.h:237
void _configureInternal()
Function to configure sensor – runs in all constructors.
warptwin::RateMonitor * rateMonitor()
Accessor for the internal rate monitor model.
Definition Accelerometer.h:224
int16 activate() override
_accel_output_struct _last_output
Temporary variable for the latest recorded output added to latency model and dummy output for steppin...
Definition Accelerometer.h:264
MODEL(Servo) public int16 deactivate() override
Model to simulate a servo's motion.
@ MODEL
Simplified dynamics model representing motion in the circular restricted 3 body problem.
Definition ImNode.h:31
CartesianVector3 _w
Temporary vector used for random rotations.
Definition SunSensor.h:235
LatencyUtil< double > _latency_model
The latency model for servo angle output.
Definition Servo.h:116
MODEL(Magnetometer) public warptwin::MarkovUncertaintyModel * biasNoiseModel()
Accessor for the internal bias and noise model.
Definition Magnetometer.h:202
int16 execute() override
Function to check monitor input conditions and set trigger flag accordingly. Should be implemented in...
RateMonitor _rate_monitor
Rate monitor to control the rate at which the sensor runs.
Definition Accelerometer.h:243
double _latency_return
Temporary value for the return of the latency value.
Definition Servo.h:122
warptwin::OccultationModel * occultationModel()
Accessor for the internal occultation model.
Definition SunSensor.h:188
Model of sun sensor which produces look vector to the sun.
Definition SunSensor.h:85
_sunsensor_output_struct(CartesianVector3 meas_sun_vector__ss, bool is_valid)
Definition SunSensor.h:93
bool is_valid
Definition SunSensor.h:87
_sunsensor_output_struct()
Definition SunSensor.h:89
CartesianVector3 meas_sun_vector__ss
Definition SunSensor.h:86