Changes for page LEGO Mindstorms with leJOS and SCCharts
Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -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
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -3781428 71 +37814289 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/3781428 7/LEGO Mindstorms with leJOS and SCCharts1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/37814289/LEGO Mindstorms with leJOS and SCCharts