Skip to content

Commit

Permalink
fix small
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMochizuki committed Jan 2, 2024
1 parent 5cca761 commit 112e0a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,5 @@ target_sat_id = 1
// When this value is negative, reference_sat_id is automatically set as the mounting satellite ID
reference_sat_id = -1

[SENSOR_BASE_RELATIVE_ATTITUDE_SENSOR]
// The coordinate of the error is selected by the error_frame
// Scale factor [-]
scale_factor_c(0) = 1;
scale_factor_c(1) = 0;
scale_factor_c(2) = 0;
scale_factor_c(3) = 0;
scale_factor_c(4) = 1;
scale_factor_c(5) = 0;
scale_factor_c(6) = 0;
scale_factor_c(7) = 0;
scale_factor_c(8) = 1;

// Constant bias noise [rad]
constant_bias_c_rad(0) = 0.0
constant_bias_c_rad(1) = 0.0
constant_bias_c_rad(2) = 0.0

// Standard deviation of normal random noise [rad]
normal_random_standard_deviation_c_rad(0) = 0.0
normal_random_standard_deviation_c_rad(1) = 0.0
normal_random_standard_deviation_c_rad(2) = 0.0

// Standard deviation for random walk noise [rad]
random_walk_standard_deviation_c_rad(0) = 0.0
random_walk_standard_deviation_c_rad(1) = 0.0
random_walk_standard_deviation_c_rad(2) = 0.0

// Limit of random walk noise [rad]
random_walk_limit_c_rad(0) = 0.0
random_walk_limit_c_rad(1) = 0.0
random_walk_limit_c_rad(2) = 0.0

// Range [rad]
range_to_constant_rad = 6.283186 // smaller than range_to_zero_rad
range_to_zero_rad = 7.0
// Standard deviation of force direction error [deg]
error_angle_standard_deviation_deg = 1.0
7 changes: 6 additions & 1 deletion s2e-ff/src/components/aocs/relative_attitude_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

RelativeAttitudeSensor::RelativeAttitudeSensor(const int prescaler, ClockGenerator* clock_gen, Sensor& sensor_base, const int target_sat_id,
const int reference_sat_id, const RelativeInformation& rel_info, const double standard_deviation_rad)
: Component(prescaler, clock_gen), Sensor(sensor_base), target_sat_id_(target_sat_id), reference_sat_id_(reference_sat_id), rel_info_(rel_info) {
: Component(prescaler, clock_gen),
Sensor(sensor_base),
target_sat_id_(target_sat_id),
reference_sat_id_(reference_sat_id),
rel_info_(rel_info),
angle_noise_(0.0, standard_deviation_rad) {
direction_noise_.SetParameters(0.0, 1.0);
}

Expand Down

0 comments on commit 112e0a7

Please sign in to comment.