Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does MoveTank support two different Motor? #769

Open
Vincentwtt opened this issue Jan 9, 2021 · 1 comment
Open

Does MoveTank support two different Motor? #769

Vincentwtt opened this issue Jan 9, 2021 · 1 comment

Comments

@Vincentwtt
Copy link

  • ev3dev version: 4.14.117-ev3dev-2.3.5-ev3
  • ev3dev-lang-python version: INSERT ALL VERSIONS GIVEN BY dpkg-query -l {python3,micropython}-ev3dev* HERE
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    +++-==============-============-============-=================================
    ii micropython-ev 2.1.0 all Python language bindings for ev3d
    ii python3-ev3dev 1.2.0 all Python language bindings for ev3d
    ii python3-ev3dev 2.1.0 all Python language bindings for ev3d

Hi there,

I am curious that is there anyway to give different motor size for MoveTank?
e.g. MediumMotor for Output_A while LargeMotor for Output_D

If not, is there any other way to control two different motor simultaneously?

@WasabiFan
Copy link
Member

MoveTank does not support two different types of motor by default.

You can, if it's helpful, construct a MotorSet with the two different motors in it, and that will get you some of the teamed functionality you may want. I believe both medium and large motors' encoders use the same resolution, in which case this may work fine if you command a specific speed and intend for them both to rotate at that same speed, but I may be mis-remembering.

If you're indeed trying to drive with these two motors (i.e., you have a MediumMotor on one side of your robot and a LargeMotor on the other), you may find some other types of asymmetry in its behavior that will mean your robot doesn't drive straight. It would probably be better to use two of the same type of motor for driving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants