LoginSignup
1

More than 5 years have passed since last update.

leJOSにおけるモーターの同時停止

Last updated at Posted at 2016-02-26

leJOSとは

レゴマインドストームをJavaで動かすためのファームウェア

公式サイト
http://www.lejos.org/

モーターの同時停止

授業で、EV3のモーターが同時に停止せずに困るという声が上がったため調査した。

この様にしていると、モーターは順次停止するため、ズレて停止する。

rightMotor.stop()
leftMotor.stop()

以下のように、stopメソッドの引数にtrueを入れることで、モーターの停止は逐次処理から並列処理となる。

rightMotor.stop(true)
leftMotor.stop()

参考動画

同時停止をする場合としない場合の参考動画
動きにかなり違いが出ることがよく分かる。
https://youtu.be/SmqLGs-GAEA

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1