Skip to content

Commit e2ad668

Browse files
committed
copy sm changes from launch canada
1 parent 47442ec commit e2ad668

File tree

3 files changed

+251
-76
lines changed

3 files changed

+251
-76
lines changed

src/stateMachine/HotFire/HotFireGpioConfig.h

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616

1717
#define USE_PWM_FILL 1
1818

19+
#define USE_PURGE 1
20+
1921
#define USE_HEATER 1
2022

2123
#define EVENT_ENABLE_MASK 0b1
2224

2325
#if USE_VENT
2426
#define VENT_NAME "VENT"
25-
#define VENT_PIN 8
27+
#define VENT_PIN 13
2628
#define VENT_OPEN 1
2729
#define VENT_CLOSE 0
2830
#define VENT_SAFE 1
@@ -32,8 +34,8 @@
3234
#if USE_IGNITER
3335
#define IGNITER_NAME "IGNITER"
3436
#define IGNITER_PIN 12
35-
#define IGNITER_ON 1
36-
#define IGNITER_OFF 0
37+
#define IGNITER_ON 0
38+
#define IGNITER_OFF 1
3739
#define IGNITER_EVENT_ENABLE_MASK 0b100
3840
#endif
3941

@@ -46,7 +48,7 @@
4648
#define MAIN_POTENTIOMETER_PIN 0
4749
#define MAIN_MOTOR_POWER 255
4850
#define MAIN_OPEN 0
49-
#define MAIN_IGNITION 400
51+
#define MAIN_IGNITION_BURN 400
5052
#define MAIN_CLOSE 1023
5153
#define MAIN_EVENT_ENABLE_MASK 0b1000
5254
#endif
@@ -71,6 +73,16 @@
7173
#define FILL_SOFTPWM true
7274
#endif
7375

76+
#if USE_PURGE
77+
#define PURGE_NAME "PURGE"
78+
#define PURGE_PIN 3
79+
#define PURGE_OPEN 180
80+
#define PURGE_CLOSE 0
81+
#define PURGE_SAFE 0
82+
#define PURGE_EVENT_ENABLE_MASK 0b1000000
83+
#define PURGE_SOFTPWM true
84+
#endif
85+
7486
#if USE_HEATER
7587
#define HEATER_NAME "HEATER"
7688
#define HEATER_PIN 7

0 commit comments

Comments
 (0)