Skip to content

MoveDifferential: use gyro support for better accuracy #620

Open

Description

@dwalton76

odometry support went in via #235 but the initial commit did not include gyro support

Activity

  1. self-assigned this
    on Apr 18, 2019
  2. dwalton76 commented on Apr 18, 2019

    @dwalton76
    CollaboratorAuthor

    @WasabiFan in a nutshell do you just use the gryo angle instead of calculating the angle based on the wheel movements?

  3. dwalton76 commented on Apr 21, 2019

    @dwalton76
    CollaboratorAuthor

    ok I watched enough builderdude35 videos on Youtube last night that I think I have my head wrapped around what to do with the gyro in terms of odometry. I think my gryo is busted though, I do things like use MoveDifferential turn_to_angle to turn 90 degrees and the robot looks like it turned exactly 90 degrees but the gyro says it turned 50 degrees.

  4. WasabiFan commented on Apr 21, 2019

    @WasabiFan
    Member

    The way I would imagine implementing it is to throw the gyro and wheel odometry angle measurements into a Kalman filter (to smooth out the gyro data, primarily) then use the output measurement for calculations. That being said, the noise of the gyro probably isn't huge and both of our measurements are continuously integrated rather than individually sampled, so a Kalman filter might be overkill.

    What was the approach you saw?

  5. dwalton76 commented on Apr 21, 2019

    @dwalton76
    CollaboratorAuthor

    For rotating in place it just used move steering to start rotating and then stopped when the gyro got to the desired angle. They had to underestimate though (aim for 80 degrees to end up turning the desired 90 degrees) so it wasnt crazy impressive. What we have right now (without a gyro) is actually pretty good. I can tell it to torn 90 and it will sometimes hit it dead on but others it will only be off by a degree or two.

  6. dwalton76 commented on Apr 21, 2019

    @dwalton76
    CollaboratorAuthor

    For driving forward in a straight line they used a PID controller to adjust motors to keep the gyro at the original angle. This all looked very cool to me and worked really well in the video. He would have the robot driving straight and then would nudge it with his hand and the robot would straighten itself out

  7. dwalton76 commented on Apr 21, 2019

    @dwalton76
    CollaboratorAuthor

    Having lots of gyro issues right now, filed ev3dev/ev3dev#1262

  8. dwalton76 commented on Apr 26, 2019

    @dwalton76
    CollaboratorAuthor

    Also hitting ev3dev/ev3dev#1269

  9. changed the title [-]MoveDifferential Odometry: add gyro support for better accuracy[/-] [+]MoveDifferential: use gyro support for better accuracy[/+] on Jan 4, 2020
  10. dwalton76 commented on Jan 17, 2020

    @dwalton76
    CollaboratorAuthor

    We reverted the commit so am re-opening this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions