@@ -115,6 +115,7 @@ void AntennaDeployer ::startNextAttempt() {
115115
116116 this ->m_totalAttempts ++;
117117 this ->tlmWrite_DeployAttemptCount (this ->m_totalAttempts );
118+ this ->m_burnTicksThisAttempt = 0 ;
118119
119120 if (this ->isConnected_burnStart_OutputPort (0 )) {
120121 this ->burnStart_out (0 );
@@ -140,6 +141,7 @@ void AntennaDeployer ::handleQuietWaitTick() {
140141
141142void AntennaDeployer ::handleBurningTick () {
142143 this ->m_ticksInState ++;
144+ this ->m_burnTicksThisAttempt = this ->m_ticksInState ;
143145
144146 if (this ->m_stopRequested ) {
145147 this ->finishDeployment (Components::DeployResult::DEPLOY_RESULT_ABORT);
@@ -154,6 +156,7 @@ void AntennaDeployer ::handleBurningTick() {
154156 const U32 burnDuration = this ->paramGet_BURN_DURATION_SEC (valid);
155157 if (this ->m_ticksInState >= burnDuration) {
156158 this ->ensureBurnwireStopped ();
159+ this ->logBurnSignalCount ();
157160
158161 if (this ->m_successDetected ) {
159162 this ->finishDeployment (Components::DeployResult::DEPLOY_RESULT_SUCCESS);
@@ -205,6 +208,7 @@ void AntennaDeployer ::finishDeployment(Components::DeployResult result) {
205208 }
206209
207210 this ->ensureBurnwireStopped ();
211+ this ->logBurnSignalCount ();
208212
209213 if (result == Components::DeployResult::DEPLOY_RESULT_SUCCESS) {
210214 this ->log_ACTIVITY_HI_DeploySuccess (this ->m_currentAttempt );
@@ -222,6 +226,7 @@ void AntennaDeployer ::resetDeploymentState() {
222226 this ->m_stopRequested = false ;
223227 this ->m_successDetected = false ;
224228 this ->m_lastDistanceValid = false ;
229+ this ->m_burnTicksThisAttempt = 0 ;
225230}
226231
227232bool AntennaDeployer ::isDistanceWithinValidRange (F32 distance) {
@@ -240,6 +245,7 @@ bool AntennaDeployer ::isDistanceDeployed(F32 distance) {
240245
241246 if (distance <= threshold) {
242247 this ->m_successDetected = true ;
248+ this ->logBurnSignalCount ();
243249 return true ;
244250 }
245251
@@ -252,4 +258,11 @@ void AntennaDeployer ::ensureBurnwireStopped() {
252258 }
253259}
254260
261+ void AntennaDeployer ::logBurnSignalCount () {
262+ if (this ->m_burnTicksThisAttempt > 0U ) {
263+ this ->log_ACTIVITY_LO_AntennaBurnSignalCount (this ->m_burnTicksThisAttempt );
264+ this ->m_burnTicksThisAttempt = 0 ;
265+ }
266+ }
267+
255268} // namespace Components
0 commit comments