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

Unlink forward / backward time and turning time in L298N handler #22

Open
espresso0000 opened this issue Dec 5, 2018 · 1 comment
Open
Assignees

Comments

@espresso0000
Copy link

I have been hand adding to the motor controller to allow improved control over the tank drive using a way to set the turn different then forward & reverse to allow for:

l298n_sleeptime=0.2
l298n_rotatetimes=2

  • l298n_lr_sleeptime=0.1
  • l298n_lr_rotatetimes=2

then adding:

if direction == 'L':
GPIO.output(StepPinLeft, GPIO.HIGH)

  • time.sleep(l298n_lr_sleeptime)

    GPIO.output(StepPinLeft, GPIO.LOW)

if direction == 'R':
GPIO.output(StepPinRight, GPIO.HIGH

  • time.sleep(l298n_lr_sleeptime

    GPIO.output(StepPinRight, GPIO.LOW)

@Nocturnal42
Copy link
Collaborator

As talked about in your pull request. We will probably unlink forward / backward and turning. Just need to do a little consulting before hand. Docs and sample config will need to be updated with warnings about the change so people transitioning from the old controller will not be caught off guard.

@Nocturnal42 Nocturnal42 self-assigned this Dec 5, 2018
@Nocturnal42 Nocturnal42 changed the title l298n_lr_sleeptime & l298n_lr_rotatetimes Unlink forward / backward time and turning time in L298N handler Dec 5, 2018
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