Skip to content

Commit 377c91a

Browse files
committed
updated several control sequences
1 parent 0524e05 commit 377c91a

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
authority 0
2+
3+
start_sim_cmd => main
4+
5+
6+
sequence main {
7+
stage listen {
8+
ox_pt_1 > 200 and ox_pt_2 > 200 => next,
9+
ox_tc_1 -> stable_for{duration=1s} => next,
10+
}
11+
stage abort {
12+
set_authority{value=255},
13+
0 -> ox_mpv_cmd,
14+
1 -> ox_vent_cmd,
15+
0 -> ox_tpc_cmd,
16+
wait{duration=50s} => next,
17+
}
18+
stage safe {
19+
set_authority{value=0}
20+
}
21+
}

client/py/examples/control/tpc/control_sequence.arc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
authority 150
2+
13
start_seq_cmd => main
24

35
func control_tpc() {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
authority 200
2+
3+
start_sim_cmd => main
4+
5+
sequence main {
6+
stage open_ox_mpv {
7+
1 -> ox_mpv_cmd,
8+
wait{duration=500ms} => next,
9+
}
10+
stage open_fuel_mpv {
11+
1 -> fuel_mpv_cmd,
12+
}
13+
}

0 commit comments

Comments
 (0)