From 200026f53eb82615832461b123d69d601f92b337 Mon Sep 17 00:00:00 2001 From: Satoshi Ikari Date: Thu, 12 Oct 2023 18:18:00 +0200 Subject: [PATCH] Add component interference file --- .../components/component_interference.ini | 33 +++++++++++++++++++ data/initialize_files/satellite.ini | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 data/initialize_files/components/component_interference.ini diff --git a/data/initialize_files/components/component_interference.ini b/data/initialize_files/components/component_interference.ini new file mode 100644 index 0000000..67443b1 --- /dev/null +++ b/data/initialize_files/components/component_interference.ini @@ -0,0 +1,33 @@ +[MTQ_MAGNETOMETER_INTERFERENCE] + +// x: MTQ output vector at MTQ component frame [Am2] +// y: Additional bias at magnetometer component frame [nT] +// A1, A2, ...: Polynomial coefficients defined in this file +// ** measns Hadamard product +// y = A1 * x + A2 * x ** x + A3 * x ** x ** x ... + +polynomial_degree = 1 + +// We do not have zero coefficients + +// 1st coefficients of additional bias A1 [nT/Am2] +additional_bias_by_mtq_coefficients_1(0) = 10000.0 // MTQ X -> Mabetometer X +additional_bias_by_mtq_coefficients_1(1) = -20000.0 // MTQ X -> Mabetometer Y +additional_bias_by_mtq_coefficients_1(2) = 30000.0 // MTQ X -> Mabetometer Z +additional_bias_by_mtq_coefficients_1(3) = 40000.0 // MTQ Y -> Mabetometer X +additional_bias_by_mtq_coefficients_1(4) = -50000.0 // MTQ Y -> Mabetometer Y +additional_bias_by_mtq_coefficients_1(5) = 60000.0 // MTQ Y -> Mabetometer Z +additional_bias_by_mtq_coefficients_1(6) = 70000.0 // MTQ Z -> Mabetometer X +additional_bias_by_mtq_coefficients_1(7) = -80000.0 // MTQ Z -> Mabetometer Y +additional_bias_by_mtq_coefficients_1(8) = 90000.0 // MTQ Z -> Mabetometer Z + +// 2nd coefficients of additional bias A2 [nT/Am2^2] +additional_bias_by_mtq_coefficients_2(0) = -10000.0 // MTQ X -> Mabetometer X +additional_bias_by_mtq_coefficients_2(1) = 20000.0 // MTQ X -> Mabetometer Y +additional_bias_by_mtq_coefficients_2(2) = -30000.0 // MTQ X -> Mabetometer Z +additional_bias_by_mtq_coefficients_2(3) = -40000.0 // MTQ Y -> Mabetometer X +additional_bias_by_mtq_coefficients_2(4) = 50000.0 // MTQ Y -> Mabetometer Y +additional_bias_by_mtq_coefficients_2(5) = -60000.0 // MTQ Y -> Mabetometer Z +additional_bias_by_mtq_coefficients_2(6) = -70000.0 // MTQ Z -> Mabetometer X +additional_bias_by_mtq_coefficients_2(7) = 80000.0 // MTQ Z -> Mabetometer Y +additional_bias_by_mtq_coefficients_2(8) = -90000.0 // MTQ Z -> Mabetometer Z diff --git a/data/initialize_files/satellite.ini b/data/initialize_files/satellite.ini index 834f5e7..73e667f 100644 --- a/data/initialize_files/satellite.ini +++ b/data/initialize_files/satellite.ini @@ -109,6 +109,8 @@ gnss_receiver_file = ../../data/initialize_files/components/oem7600.ini reaction_wheel_file = ../../data/initialize_files/components/rw0003.ini magnetorquer_file = ../../data/initialize_files/components/mtq_seiren.ini thruster_file = ../../data/initialize_files/components/thruster.ini +component_interference_file = INI_FILE_DIR_FROM_EXE/components/component_interference.ini + // Electric Power System power_controller_file = ../../data/initialize_files/components/power_controller.ini bat_file = ../../data/initialize_files/components/battery.ini