Changes for page LEGO Mindstorms with leJOS and SCCharts
Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. aas21 +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 TextualSCChartsLanguage SCT>>doc:TextualSCCharts 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 - 378142871 +57802902 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/ 37814287/LEGO Mindstorms with leJOS and SCCharts1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/57802902/LEGO Mindstorms with leJOS and SCCharts