Skip to content

Commit caaad34

Browse files
committed
minor mods
1 parent d2e53de commit caaad34

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

docs/doc-plan.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ or the current value of one of the four sensors, or the last value received over
9494

9595
A :=
9696
| <float>
97-
| var_X | var_Y | var_Z
97+
| variable_X | variable_Y | variable_Z
9898
| light_value | sound_value | temp_value | magnet_value
9999
| radio_value
100100

@@ -136,13 +136,13 @@ where - denotes a rest, inside backquotes:
136136

137137
Before execution starts, all variables (X, Y, and Z) are initialized to 0
138138
and the current value of all micro:bit/jacdac sensors is cached.
139-
The initial value of the radio is undefined.
139+
The initial value of radio_value is undefined.
140140
The radio group is initialized to 1.
141141
Execution begins by transitioning to page 1.
142142

143143
### Defaults
144144

145-
The absence of an optional element results in the use of a default, as follows:
145+
The absence of an optional element/value results in the use of a default element/value, as follows:
146146

147147
- A rule with an empty do section never executes (no matching performed
148148
on it).
@@ -155,16 +155,16 @@ The absence of an optional element results in the use of a default, as follows:
155155
- move defaults to shake event
156156
- sound defaults to loud event
157157
- temperature, light, and magnet default to up event
158-
- radio and variable signals have no default
158+
- radio and variable signals have no default, they fire even without a default
159159
- Action defaults are as follows
160160
- show_number defaults to 0
161161
- show_image defaults to smiley face
162162
- play_sound defaults to giggle
163163
- music defaults to `C E G C`
164164
- radio_send defaults to 0
165165
- radio_set_group defaults to 1
166-
- set of a variable defaults to 0
167-
- switch page with no page specified is a NOOP
166+
- variable_X_set, variable_Y_set, variable_Z_set defaults to 0
167+
- switch_page with no page specified is a NOOP
168168

169169
### Signals
170170

@@ -212,15 +212,13 @@ execution of any currently active rules that conflict with
212212
a rule in E.
213213

214214
The set E is then partition into three sets, I, S, and T, corresponding
215-
to rules that execute instantly, those that switch page, and t
216-
hose that take time. Instant actions are
215+
to rules whose actions execute instantly, those that switch page, and those that take time. Instant actions are
217216

218217
- assignments to variables
219218
- radio send
220219
- radio set group
221-
- switch page
222220

223-
The remaining actions are the ones that (may) take time.
221+
The remaining actions (other than switch page) are the ones that (may) take time.
224222

225223
The actions in I are executed first and run to completion.
226224
Then, if S is not empty then

0 commit comments

Comments
 (0)