Example #1
0
def test_low_integrity_status_report():
    wheel = ReactionWheel(axis=YAW, max_force=15)
    wheel.degrade(0.5)
    assert wheel.status_report["integrity"] == wheel.integrity, \
        "Wheel integrity is innacurately reported"
Example #2
0
def test_is_active_status_report_no_integrity():
    wheel = ReactionWheel(axis=YAW, max_force=15)
    wheel.degrade(1)
    assert wheel.status_report["is_active"] == wheel.is_active, \
        "Wheel is_active is innacurately reported"
Example #3
0
def test_max_force_status_report_low_integrity():
    w = ReactionWheel(axis=YAW, max_force=15)
    w.degrade(0.2)
    assert w.status_report["max_force"] == w.max_force, \
        "Wheel max_force is innacurately reported"