-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.fpseq
More file actions
48 lines (39 loc) · 2.21 KB
/
Copy pathexample.fpseq
File metadata and controls
48 lines (39 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Write comments using '#'
# Create a test sequence called test1
TEST SEQ test1
# Expect no event of severity warning_hi or fatal along the course of the test
[:] EXPECT NO EVENT EventSeverity.WARNING_HI
[:] EXPECT NO EVENT EventSeverity.FATAL
# Send a command without arguments at the start of the test
[0] COMMAND eventAction.LOG_VERSION
# Any instruction can be followed by an indented block of instructions
# to make their timing relative the the instruction's starting time
# Note that indented blocks can be arbitrarily nested
# Expect events in the next 100 ms after sending the command
[:100] EXPECT EVENT cmdDisp.OpCodeDispatched re"0xe04"
# Use re"<expr>" to match the received value against the regular expression <expr>
[:100] EXPECT EVENT eventAction.CurrentVersion re"Current version : \d"
[:100] EXPECT EVENT cmdDisp.OpCodeCompleted re"0xe04"
# Expect telemetry in the next 15 seconds after sending the command
[:15000] EXPECT TELEMETRY eventAction.Version re"\d"
# Send a 2nd command 1 second after the start of the test
[1000] COMMAND eventAction.SCHEDULE_NUMBER_CRUNCHER 5 600 60
[:100] EXPECT EVENT cmdDisp.OpCodeDispatched re"0xe06"
[:100] EXPECT EVENT cmdDisp.OpCodeCompleted re"0xe06"
# Expect mode changes only during specific time interval
[:4000] EXPECT NO EVENT eventAction.ModeChanged
[4000:7000] EXPECT EVENT eventAction.ModeChanged "Mode set to MEASURE"
[7000:64000] EXPECT NO EVENT eventAction.ModeChanged
[64000:69000] EXPECT EVENT eventAction.ModeChanged "Mode set to CHARGE"
# Start uplinking a file to the OBC 100 seconds after the start of the test
[100000] UPLINK "/input/IOD_v2" "/home/root/executables/IOD_v2"
# Expect the file to be received in the next 60 seconds
[:60000] EXPECT EVENT fileUplink.FileReceived
# Run another sequence inside a sequence 160 seconds after the start of the test
[160000] RUNSEQ simple_seq
# Create a simple sequence called simple_seq
SEQ simple_seq
[0] COMMAND eventAction.UPDATE "/home/root/executables/" "IOD_v2"
[:100] EXPECT EVENT cmdDisp.OpCodeDispatched re"0xe03"
[:100] EXPECT EVENT cmdDisp.OpCodeCompleted re"0xe03"
[2000] COMMAND eventAction.SCHEDULE_RESTART 1