aidotse / PASEOS

PASEOS - PAseos Simulates the Environment for Operating multiple Spacecraft
GNU General Public License v3.0
36 stars 8 forks source link

Attitude model v2 #198

Closed Mr-Medina closed 8 months ago

Mr-Medina commented 8 months ago

Description

Similar to pull request #194 . Attitude model with outputs: actor attitude (roll, pitch & yaw angles) and user specified pointing vector. Now also outputs actor angular velocity vector and uses the actor moment of inertia from geometrical model from #195.

Attitude disturbances will be added in a later PR.

Resolved Issues

How Has This Been Tested?

Refer to "test_attitude_plotting.py" for visual reference of attitude model and response to changes of actor initial conditions. Summary of changes. More elaborate tests will follow.

Related Pull Requests

github-actions[bot] commented 8 months ago

Overall Coverage

Coverage Report
FileStmtsMissCoverMissing
paseos
   __init__.py33197%49
   paseos.py1461391%67–68, 145–146, 172, 207, 222, 240, 249, 267, 298, 306–309
paseos/activities
   activity_manager.py43393%46, 74, 157
   activity_processor.py58198%121
   activity_runner.py621084%80–84, 104–113, 122–125
paseos/actors
   actor_builder.py1994179%24–30, 33, 223–225, 252–254, 299–308, 329–336, 475, 530–537, 548, 566, 594, 606–610, 617–618, 625–626
   base_actor.py1341986%85, 107, 123, 179, 219–221, 242, 251, 268, 289, 295–298, 304, 319, 349, 382
   ground_station_actor.py15380%47–53
   spacecraft_actor.py75988%125, 176–179, 187–190, 199, 208
paseos/attitude
   attitude_model.py624429%52–71, 80–81, 90–97, 104–108, 130–133, 147–163, 173–179, 188–232
   disturbance_calculations.py10640%11–12, 18–19, 25–26
paseos/central_body
   central_body.py65592%68, 177–178, 186–187
   is_in_line_of_sight.py581279%106–123, 167, 187
   mesh_between_points.py35294%64, 72
   sphere_between_points.py26869%35–38, 48–51, 63–64
paseos/communication
   get_communication_window.py23291%38, 64
paseos/geometric_model
   geometric_model.py281643%32–38, 47–79, 92–93, 101–102
paseos/power
   charge_model.py16194%49
   discharge_model.py7271%22, 34
paseos/tests
   activity_test.py57395%90, 93–94
   communication_window_test.py49198%176
   eclipse_test.py10190%20
   import_test.py6183%13
   init_test.py8188%16
   line_of_sight_test.py62494%143–146
   mesh_test.py119397%118, 136, 144
   thermal_model_test.py30197%61
   visualization_test.py18194%28
paseos/utils
   check_cfg.py611870%31, 40, 46, 60–62, 67, 70–72, 75–77, 80–82, 98, 103
   operations_monitor.py71396%127–130
   reference_frame_transfer.py675715%39–54, 70–99, 116–124, 141–147, 163–167, 183–187, 201–215, 242–266, 283–288
paseos/visualization
   animation.py18667%27–30, 35, 44
   plot.py9367%29–32
   space_animation.py2152389%108–109, 124, 147–148, 182, 206–213, 219, 329, 352–354, 359, 368–369, 373, 409, 415–416, 447, 461–472
TOTAL236232486% 

Tests Skipped Failures Errors Time
36 0 :zzz: 0 :x: 0 :fire: 59.983s :stopwatch: