<
From version < 40.1 >
edited by aas2
on 2017/10/16 13:09
To version < 43.1 >
edited by Soeren Domroes
on 2019/05/06 15:25
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.aas2
1 +XWiki.sdo
Content
... ... @@ -14,8 +14,8 @@
14 14  
15 15  If you want to learn the SCCharts langugage first, you can follow these links:
16 16  
17 -* [[Introduction to SCCharts>>doc:SCCharts]]
18 -* [[The Textual SCCharts Language SCT>>doc:Textual SCCharts Language SCT]]
17 +* [[Introduction to SCCharts>>doc:SCCharts (pre 1\.0)]]
18 +* [[SCCharts Syntax>>doc:Syntax]]
19 19  * [[SCCharts Examples>>doc:Examples]]
20 20  
21 21  ----
... ... @@ -223,7 +223,7 @@
223 223  **Time**
224 224  )))|(% colspan="1" %)(% colspan="1" %)
225 225  (((
226 -Reads the elapsed time since program start
226 +Reads the elapsed time since program start (milliseconds)
227 227  )))|(% colspan="1" %)(% colspan="1" %)
228 228  (((
229 229  input
... ... @@ -254,6 +254,8 @@
254 254  )))|(% colspan="1" %)(% colspan="1" %)
255 255  (((
256 256  Should be used on the very first input variable in the model, such that waiting is the last action in the tick loop.
257 +
258 +In case the actual tick loop duration is longer than the target duration, the modeler can provide some error handling.
257 257  )))|(% colspan="1" %)(% colspan="1" %)
258 258  (((
259 259  timing.ftl
... ... @@ -263,9 +263,14 @@
263 263  **TickWakeUp**
264 264  )))|(% colspan="1" %)(% colspan="1" %)
265 265  (((
266 -Sets the input variable to the current system time. The model can add to this variable to get a new value. This is the next system time it will be called.
268 +(% class="content-wrapper" %)
269 +(((
270 +Sets the input variable to the current system time (milliseconds). The model can add to this variable to get a new value. This is the next system time the tick function will be called.
267 267  
268 -This means the next tick function call is delayed until the wake up time has been reached.
272 +In other words, the next tick function call is delayed until the wake up time has been reached.
273 +
274 +For instance the statement **nextTickWakeUp += 500** could be used to call the tick function again in 500 milliseconds, if nextTickWakeUp is an input with the corresponding annotation.
275 +)))
269 269  )))|(% colspan="1" %)(% colspan="1" %)
270 270  (((
271 271  input
... ... @@ -281,6 +281,25 @@
281 281  )))
282 282  |(% colspan="1" %)(% colspan="1" %)
283 283  (((
291 +**TickCount**
292 +)))|(% colspan="1" %)(% colspan="1" %)
293 +(((
294 +Counts the ticks. First tick is 0, the following are 1, 2, 3, ...
295 +)))|(% colspan="1" %)(% colspan="1" %)
296 +(((
297 +input
298 +)))|(% colspan="1" %)(% colspan="1" %)
299 +(((
300 +int
301 +)))|(% colspan="1" %)(% colspan="1" %)
302 +(((
303 +\\
304 +)))|(% colspan="1" %)(% colspan="1" %)
305 +(((
306 +timing.ftl
307 +)))
308 +|(% colspan="1" %)(% colspan="1" %)
309 +(((
284 284  **Sleep**
285 285  )))|(% colspan="1" %)(% colspan="1" %)
286 286  (((
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -37814287
1 +57802902
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/37814287/LEGO Mindstorms with leJOS and SCCharts
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/57802902/LEGO Mindstorms with leJOS and SCCharts