Skip to content

Commit b12e05d

Browse files
committed
fixed time conversoin test
1 parent ccdb883 commit b12e05d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

FprimeZephyrReference/Components/AntennaDeployer/AntennaDeployer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void AntennaDeployer ::handleBurningTick() {
162162

163163
Fw::ParamValid attemptsValid;
164164
const U32 maxAttempts = this->paramGet_MAX_DEPLOY_ATTEMPTS(attemptsValid);
165-
if (this->m_currentAttempt > maxAttempts) {
165+
if (this->m_currentAttempt >= maxAttempts) {
166166
this->finishDeployment(Components::DeployResult::DEPLOY_RESULT_FAILED);
167167
return;
168168
}

FprimeZephyrReference/test/int/antenna_deployer_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@ def test_burn_duration_sec(fprime_test_api: IntegrationTestAPI, start_gds):
203203
stop_time = burn_stop_event.time
204204

205205
# Calculate actual burn duration (convert from microseconds to seconds)
206+
# TimeType objects need to be converted to numeric values first
207+
time_diff = stop_time - start_time
206208
actual_duration_seconds = (
207-
float(stop_time - start_time) / 1000000.0
209+
float(time_diff) / 1000000.0
208210
) # Convert microseconds to seconds
209211

210212
# Verify the burn duration is approximately 3 seconds (allow some tolerance for timing)

0 commit comments

Comments
 (0)