Move Differential
monsfortis1940 opened this issue · 2 comments
monsfortis1940 commented
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
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
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
<#739 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APL5KRDJTK54ENZKTNTICVLRO3U5LANCNFSM4MS4UBJA>
.