Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mindstorms:plnxt:first_steps [2009/02/21 19:41]
holownia
mindstorms:plnxt:first_steps [2019/06/27 15:50] (current)
Line 100: Line 100:
 go_on_buddy :- go_on_buddy :-
  nxt_go(200),​  nxt_go(200),​
-        sleep(1), % Chwila przerwyżeby jedno klaśnięcie nie zostało rozpoznane jako dwa.+        sleep(1), % Short breakso one clap would not be recognized as two.
  trigger_create(_,​clap,​wait_a_second_buddy).  trigger_create(_,​clap,​wait_a_second_buddy).
  
Line 108: Line 108:
  trigger_create(_,​clap,​go_on_buddy).  trigger_create(_,​clap,​go_on_buddy).
  
-Sprawdzenie,​ czy natężenie dźwięku przekracza progową wartość.+Verifying if the sound intensity exceeds the threshold value.
 clap :- clap :-
  nxt_sound(Value,​force),​  nxt_sound(Value,​force),​
  Value > 15.  Value > 15.
  
-Sprawdzenie,​ czy sensor ​dotyku jest wciśnięty.+Verifying if the touch sensor ​is pressed.
 pushed :- pushed :-
  nxt_touch(Value,​force),​  nxt_touch(Value,​force),​
Line 119: Line 119:
 </​code>​ </​code>​
  
-The robot moves forward. Stops after a clap. Moves farther after an another clap.  +The robot moves forward. Stops after a clap. Moves farther after an another clap.\\  
-It stops and closes the connection after pressing touch sensor.  +It stops and closes the connection after pressing touch sensor. ​\\ 
-Choose a threshold for detecting a clap sound.  +Choose a threshold for detecting a clap sound. ​\\ 
-Too low value can cause a loop. +Too low value can cause a loop. \\
 Too high will make you will have to punch the sensor instead of clapping. Too high will make you will have to punch the sensor instead of clapping.
  
mindstorms/plnxt/first_steps.1235241709.txt.gz · Last modified: 2019/06/27 15:51 (external edit)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0