|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <string.h>#include "unity.h"#include "../../../src/radio/arm_gate.cpp"#include "../../../src/radio/frame.cpp"Go to the source code of this file.
Variables | |
| static const uint8_t | kMe = 7 |
| static ArmGate | g (kMe) |
|
static |
Definition at line 23 of file test_main.cpp.
References radio_link::Arm, radio_link::kArmLen, radio_link::Frame::payload, radio_link::Frame::payload_len, radio_link::put_u32(), radio_link::Frame::seq, target, and radio_link::Frame::type.
Referenced by good_arm(), test_rejected_key_cancels_pending(), test_rejected_target_cancels_pending(), test_wrong_inverse_rejected(), test_wrong_key_rejected(), and test_wrong_target_rejected().
Definition at line 48 of file test_main.cpp.
References g.
Referenced by main(), test_confirm_after_window_does_not_arm(), test_confirm_exactly_at_window_edge_arms(), test_duplicate_sequence_is_stale(), test_ground_reboot_rejects_arm_until_rocket_reboots(), test_non_consecutive_sequence_does_not_arm(), test_other_frame_types_ignored(), test_other_frames_do_not_cancel_pending(), test_rejected_key_cancels_pending(), test_rejected_stale_cancels_pending(), test_rejected_target_cancels_pending(), test_replayed_old_arms_are_stale(), test_sequence_wraps(), test_single_arm_does_not_arm(), test_layerx_transients::test_the_start_enters_the_manifold_through_the_valve_when_no_line_is_drawn(), test_tick_expires_pending(), test_time_counter_wraps(), test_two_consecutive_arms_in_window_arm(), test_un_arm_always_honored(), test_un_arm_cancels_pending_arm(), test_un_arm_honored_even_when_stale(), test_wrong_inverse_rejected(), test_wrong_key_rejected(), and test_wrong_target_rejected().
|
static |
Definition at line 36 of file test_main.cpp.
References arm_frame(), radio_link::kArmKey, and kMe.
Referenced by test_confirm_after_window_does_not_arm(), test_confirm_exactly_at_window_edge_arms(), test_duplicate_sequence_is_stale(), test_ground_reboot_rejects_arm_until_rocket_reboots(), test_non_consecutive_sequence_does_not_arm(), test_other_frames_do_not_cancel_pending(), test_rejected_key_cancels_pending(), test_rejected_stale_cancels_pending(), test_rejected_target_cancels_pending(), test_replayed_old_arms_are_stale(), test_sequence_wraps(), test_single_arm_does_not_arm(), test_tick_expires_pending(), test_time_counter_wraps(), test_two_consecutive_arms_in_window_arm(), test_un_arm_cancels_pending_arm(), and test_un_arm_honored_even_when_stale().
| int main | ( | void | ) |
Definition at line 200 of file test_main.cpp.
References test_confirm_after_window_does_not_arm(), test_confirm_exactly_at_window_edge_arms(), test_duplicate_sequence_is_stale(), test_ground_reboot_rejects_arm_until_rocket_reboots(), test_non_consecutive_sequence_does_not_arm(), test_other_frame_types_ignored(), test_other_frames_do_not_cancel_pending(), test_rejected_key_cancels_pending(), test_rejected_stale_cancels_pending(), test_rejected_target_cancels_pending(), test_replayed_old_arms_are_stale(), test_sequence_wraps(), test_single_arm_does_not_arm(), test_tick_expires_pending(), test_time_counter_wraps(), test_two_consecutive_arms_in_window_arm(), test_un_arm_always_honored(), test_un_arm_cancels_pending_arm(), test_un_arm_honored_even_when_stale(), test_wrong_inverse_rejected(), test_wrong_key_rejected(), and test_wrong_target_rejected().
| void setUp | ( | void | ) |
Definition at line 17 of file test_main.cpp.
Definition at line 40 of file test_main.cpp.
References radio_link::Frame::seq, and radio_link::Frame::type.
Referenced by test_ground_reboot_rejects_arm_until_rocket_reboots(), test_other_frame_types_ignored(), test_other_frames_do_not_cancel_pending(), test_un_arm_always_honored(), test_un_arm_cancels_pending_arm(), and test_un_arm_honored_even_when_stale().
| void tearDown | ( | void | ) |
Definition at line 20 of file test_main.cpp.
|
static |
Definition at line 67 of file test_main.cpp.
References radio_link::Arm, feed(), good_arm(), radio_link::kArmConfirmWindowMs, and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 61 of file test_main.cpp.
References radio_link::Arm, feed(), good_arm(), radio_link::kArmConfirmWindowMs, and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 124 of file test_main.cpp.
References feed(), good_arm(), radio_link::Pending, and radio_link::RejectStale.
Referenced by main().
|
static |
Definition at line 190 of file test_main.cpp.
References radio_link::Arm, radio_link::Disarm, feed(), good_arm(), radio_link::Pending, radio_link::RejectStale, simple(), and radio_link::UnArm.
Referenced by main().
|
static |
Definition at line 76 of file test_main.cpp.
References feed(), good_arm(), and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 172 of file test_main.cpp.
References feed(), radio_link::Heartbeat, radio_link::None, radio_link::SelfTest, and simple().
Referenced by main().
|
static |
Definition at line 178 of file test_main.cpp.
References radio_link::Arm, feed(), good_arm(), radio_link::Heartbeat, radio_link::None, radio_link::Pending, and simple().
Referenced by main().
|
static |
Definition at line 102 of file test_main.cpp.
References arm_frame(), feed(), good_arm(), radio_link::kArmKey, kMe, radio_link::Pending, and radio_link::RejectKey.
Referenced by main().
|
static |
Definition at line 118 of file test_main.cpp.
References feed(), good_arm(), radio_link::Pending, and radio_link::RejectStale.
Referenced by main().
|
static |
Definition at line 109 of file test_main.cpp.
References arm_frame(), feed(), good_arm(), radio_link::kArmKey, kMe, radio_link::Pending, and radio_link::RejectTarget.
Referenced by main().
|
static |
Definition at line 129 of file test_main.cpp.
References radio_link::Arm, feed(), good_arm(), radio_link::Pending, and radio_link::RejectStale.
Referenced by main().
|
static |
Definition at line 137 of file test_main.cpp.
References radio_link::Arm, feed(), good_arm(), and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 52 of file test_main.cpp.
References feed(), good_arm(), and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 149 of file test_main.cpp.
References feed(), g, good_arm(), radio_link::kArmConfirmWindowMs, and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 142 of file test_main.cpp.
References radio_link::Arm, feed(), good_arm(), and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 56 of file test_main.cpp.
References radio_link::Arm, feed(), good_arm(), and radio_link::Pending.
Referenced by main().
|
static |
Definition at line 155 of file test_main.cpp.
References radio_link::Disarm, feed(), simple(), and radio_link::UnArm.
Referenced by main().
|
static |
Definition at line 166 of file test_main.cpp.
References radio_link::Disarm, feed(), good_arm(), radio_link::Pending, simple(), and radio_link::UnArm.
Referenced by main().
|
static |
Definition at line 159 of file test_main.cpp.
References radio_link::Disarm, feed(), good_arm(), radio_link::Pending, simple(), and radio_link::UnArm.
Referenced by main().
|
static |
Definition at line 86 of file test_main.cpp.
References arm_frame(), feed(), radio_link::kArmKey, kMe, and radio_link::RejectKey.
Referenced by main().
|
static |
Definition at line 81 of file test_main.cpp.
References arm_frame(), feed(), radio_link::kArmKey, kMe, and radio_link::RejectKey.
Referenced by main().
|
static |
Definition at line 94 of file test_main.cpp.
References arm_frame(), feed(), radio_link::kArmKey, kMe, and radio_link::RejectTarget.
Referenced by main().
Referenced by fsw::calibration::IMUCalibration::calibrateAccelStatic(), QwDevISM330DHCX::calibrateBiases(), engine.accel.chamber::chamber_inputs(), engine.accel::chamber_point(), engine.accel::chamber_solve_ex(), check_gps(), check_sample_values(), engine.accel::evaluate_ex(), feed(), anonymous_namespace{idle_e2e.cpp}::ground_arm(), fsw::script::anonymous_namespace{Parser.cpp}::Parser::parseExpr(), fsw::script::anonymous_namespace{Parser.cpp}::Parser::parsePrimary(), set_chips(), setUp(), engine.layerx.card::solve_card(), and test_tick_expires_pending().
|
static |
Definition at line 13 of file test_main.cpp.
Referenced by good_arm(), inject_arm(), setUp(), test_rejected_key_cancels_pending(), test_rejected_target_cancels_pending(), test_wrong_inverse_rejected(), test_wrong_key_rejected(), and test_wrong_target_rejected().