ev3dev / ev3dev-lang-python

Pure python bindings for ev3dev
MIT License
422 stars 146 forks source link

Move Differential #739

Closed monsfortis1940 closed 4 years ago

monsfortis1940 commented 4 years ago

Question

I am trying to use "Move Differential"for my Robot with wheels (diameter 81.6 mm and wheel _distance 120 mm )

Not clear for me how to implement these wheels in the env python3 code:

from ev3dev2.wheel import ?????? STUD_MM 8 mdiif = MoveDifferential(OUTPUT_B, OUTPUT_C, ???????, 15xSTUD_MM )

kind regards monsfortis1940

dwalton76 commented 4 years ago

You could create your own Wheel class...something like

from ev3dev2.wheel import Wheel

class MyWheel(Wheel):
    def __init__(self):
        Wheel.__init__(self, 81.6, 30)

STUD_MM 8
mdiif = MoveDifferential(OUTPUT_B, OUTPUT_C, MyWheel, 15xSTUD_MM )

The 30 above is the width of your tire...I just made something up

monsfortis1940 commented 4 years ago

hello

Thank you very much for your prompt reply Problem has been solved

kind regards monsfortis1940

Op di 28 apr. 2020 om 16:55 schreef Daniel Walton <notifications@github.com

:

You could create your own Wheel class...something like

from ev3dev2.wheel import Wheel

class MyWheel(Wheel): def init(self): Wheel.init(self, 81.6, 30)

STUD_MM 8 mdiif = MoveDifferential(OUTPUT_B, OUTPUT_C, MyWheel, 15xSTUD_MM )

The 30 above is the width of your tire...I just made something up

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ev3dev/ev3dev-lang-python/issues/739#issuecomment-620658489, or unsubscribe https://github.com/notifications/unsubscribe-auth/APL5KRDJTK54ENZKTNTICVLRO3U5LANCNFSM4MS4UBJA .