@@ -243,6 +243,10 @@ STATE_DEFINE(HotFireStateMachine, Init, UOSMData)
243
243
interface->createNewGpioPwmOutput (FILL_NAME, FILL_PIN, FILL_SAFE, FILL_SOFTPWM);
244
244
#endif
245
245
246
+ #if USE_PURGE
247
+ interface->createNewGpioPwmOutput (PURGE_NAME, PURGE_PIN, PURGE_SAFE, PURGE_SOFTPWM);
248
+ #endif
249
+
246
250
#endif
247
251
NoEventData eventData;
248
252
InternalEvent (ST_WAIT_FOR_INIT, eventData);
@@ -312,7 +316,7 @@ STATE_DEFINE(HotFireStateMachine, WaitForPurge, UOSMData)
312
316
#endif
313
317
314
318
#if USE_PURGE
315
- gpioData.stepperMotor = PURGE_CLOSE;
319
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_CLOSE}) ;
316
320
#endif
317
321
318
322
#endif
@@ -361,7 +365,7 @@ STATE_DEFINE(HotFireStateMachine, Purge, UOSMData)
361
365
#endif
362
366
363
367
#if USE_PURGE
364
- gpioData.stepperMotor = PURGE_OPEN;
368
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
365
369
#endif
366
370
367
371
#endif
@@ -410,7 +414,7 @@ STATE_DEFINE(HotFireStateMachine, Filling, UOSMData)
410
414
#endif
411
415
412
416
#if USE_PURGE
413
- gpioData.stepperMotor = PURGE_OPEN;
417
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
414
418
#endif
415
419
416
420
#endif
@@ -459,7 +463,7 @@ STATE_DEFINE(HotFireStateMachine, WaitForIgnition, UOSMData)
459
463
#endif
460
464
461
465
#if USE_PURGE
462
- gpioData.stepperMotor = PURGE_OPEN;
466
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
463
467
#endif
464
468
465
469
#endif
@@ -508,7 +512,7 @@ STATE_DEFINE(HotFireStateMachine, Ignition, UOSMData)
508
512
#endif
509
513
510
514
#if USE_PURGE
511
- gpioData.stepperMotor = PURGE_OPEN;
515
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
512
516
#endif
513
517
514
518
#endif
@@ -557,7 +561,7 @@ STATE_DEFINE(HotFireStateMachine, IgnitionBurn, UOSMData)
557
561
#endif
558
562
559
563
#if USE_PURGE
560
- gpioData.stepperMotor = PURGE_OPEN;
564
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
561
565
#endif
562
566
563
567
#endif
@@ -607,7 +611,7 @@ STATE_DEFINE(HotFireStateMachine, FullBurn, UOSMData)
607
611
#endif
608
612
609
613
#if USE_PURGE
610
- gpioData.stepperMotor = PURGE_OPEN;
614
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
611
615
#endif
612
616
613
617
#endif
@@ -656,7 +660,7 @@ STATE_DEFINE(HotFireStateMachine, FinalVenting, UOSMData)
656
660
#endif
657
661
658
662
#if USE_PURGE
659
- gpioData.stepperMotor = PURGE_OPEN;
663
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
660
664
#endif
661
665
662
666
#endif
@@ -706,7 +710,7 @@ STATE_DEFINE(HotFireStateMachine, Done, UOSMData)
706
710
#endif
707
711
708
712
#if USE_PURGE
709
- gpioData.stepperMotor = PURGE_CLOSE;
713
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_CLOSE}) ;
710
714
#endif
711
715
712
716
#endif
@@ -750,7 +754,7 @@ STATE_DEFINE(HotFireStateMachine, AbortFilling, UOSMData)
750
754
#endif
751
755
752
756
#if USE_PURGE
753
- gpioData.stepperMotor = PURGE_OPEN;
757
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
754
758
#endif
755
759
756
760
#endif
@@ -794,7 +798,7 @@ STATE_DEFINE(HotFireStateMachine, AbortBurn, UOSMData)
794
798
#endif
795
799
796
800
#if USE_PURGE
797
- gpioData.stepperMotor = PURGE_OPEN;
801
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, PURGE_OPEN}) ;
798
802
#endif
799
803
800
804
#endif
@@ -897,7 +901,7 @@ STATE_DEFINE(HotFireStateMachine, ServoControl, UOSMData)
897
901
{
898
902
bool open = (eventNbr & PURGE_EVENT_ENABLE_MASK) > 0 ;
899
903
900
- gpioData.stepperMotor = open ? PURGE_OPEN : PURGE_CLOSE;
904
+ gpioData.pwmOutputMap . insert ({PURGE_NAME, open ? PURGE_OPEN : PURGE_CLOSE}) ;
901
905
902
906
logValveStatus (PURGE_NAME, open);
903
907
}
0 commit comments