Skip to content

Commit

Permalink
Add component interference file
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Oct 12, 2023
1 parent a1d8318 commit 200026f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions data/initialize_files/components/component_interference.ini
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions data/initialize_files/satellite.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 200026f

Please sign in to comment.