117 sd.digital_data_.pneumatic_line_pressure_ =
true;
118 sd.digital_data_.asms_on_ =
true;
120 sd.failure_detection_.inversor_alive_timestamp_.reset();
121 sd.failure_detection_.pc_alive_timestamp_.reset();
122 sd.failure_detection_.steer_alive_timestamp_.reset();
123 sd.failure_detection_.res_signal_loss_timestamp_.reset();
125 sd.failure_detection_.emergency_signal_ =
false;
126 sd.failure_detection_.ts_on_ =
true;
130 TEST_ASSERT_FALSE(checkupManager.shouldEnterEmergency(
State::AS_READY));
131 sd.digital_data_.sdc_open_ =
true;
132 TEST_ASSERT_TRUE(checkupManager.shouldEnterEmergency(
State::AS_READY));
133 sd.digital_data_.sdc_open_ =
false;
134 sd.digital_data_.pneumatic_line_pressure_ =
false;
135 while (!
sd.r2d_logics_.releaseEbsTimestamp.checkWithoutReset());
136 TEST_ASSERT_TRUE(checkupManager.shouldEnterEmergency(
State::AS_READY));
137 sd.digital_data_.pneumatic_line_pressure_ =
true;
138 sd.digital_data_.asms_on_ =
false;
139 TEST_ASSERT_TRUE(checkupManager.shouldEnterEmergency(
State::AS_READY));
140 sd.digital_data_.asms_on_ =
true;
141 sd.failure_detection_.ts_on_ =
false;
142 TEST_ASSERT_TRUE(checkupManager.shouldEnterEmergency(
State::AS_READY));
143 sd.failure_detection_.ts_on_ =
true;
144 sd.failure_detection_.emergency_signal_ =
true;
145 TEST_ASSERT_TRUE(checkupManager.shouldEnterEmergency(
State::AS_READY));
146 sd.failure_detection_.emergency_signal_ =
false;
147 sd.sensors_._hydraulic_line_pressure = 1;
148 TEST_ASSERT_TRUE(checkupManager.shouldEnterEmergency(
State::AS_READY));
150 sd.failure_detection_.inversor_alive_timestamp_.reset();
151 sd.failure_detection_.pc_alive_timestamp_.reset();
152 sd.failure_detection_.steer_alive_timestamp_.reset();
153 sd.failure_detection_.res_signal_loss_timestamp_.reset();
155 sd.digital_data_.sdc_open_ =
true;
157 sd.digital_data_.sdc_open_ =
false;
158 sd.digital_data_.pneumatic_line_pressure_ =
false;
160 sd.digital_data_.pneumatic_line_pressure_ =
true;
161 sd.digital_data_.asms_on_ =
false;
163 sd.digital_data_.asms_on_ =
true;
164 sd.failure_detection_.ts_on_ =
false;
165 TEST_ASSERT_TRUE(checkupManager.shouldEnterEmergency(
State::AS_READY));
166 sd.failure_detection_.ts_on_ =
true;
167 sd.failure_detection_.emergency_signal_ =
true;
169 sd.failure_detection_.emergency_signal_ =
false;
183 sd.digital_data_.pneumatic_line_pressure_ =
true;
184 sd.digital_data_.asms_on_ =
true;
185 sd.sensors_._hydraulic_line_pressure = 1;
186 sd.failure_detection_.inversor_alive_timestamp_.reset();
187 sd.failure_detection_.pc_alive_timestamp_.reset();
188 sd.failure_detection_.steer_alive_timestamp_.reset();
189 sd.failure_detection_.res_signal_loss_timestamp_.checkWithoutReset();
191 sd.r2d_logics_.releaseEbsTimestamp.reset();
192 sd.failure_detection_.emergency_signal_ =
false;
193 sd.failure_detection_.ts_on_ =
true;
202 while (!time3.check()) {
203 sd.failure_detection_.inversor_alive_timestamp_.
reset();
204 sd.failure_detection_.pc_alive_timestamp_.reset();
205 sd.failure_detection_.steer_alive_timestamp_.reset();
206 sd.failure_detection_.res_signal_loss_timestamp_.reset();
211 sd.sensors_._hydraulic_line_pressure = 1;