cbot vbot logo.png
  • Home

  • Our Club

    • 2020-2021 Change Up Competition
    • How To Join
    • Advisors
    • Club Officers
    • Sponsors
  • Teams

    • 7784D
    • 7784E
    • 7784M
    • 7784R
    • 8931D
    • 8931E
    • 8931F
    • 8931J
    • 8931K
    • 8931R
    • 8931Z
  • COVID-19

    • COVID-19 Plan
    • Guest STEM Speakers
    • Volunteering with VEXIQ
  • Acheivements

    • Club History
    • Competition History
    • Pictures of the Past
    • Publicity
    • Awards
    • World Competitors
    • Online Challenges
  • Outreach

    • Outreach
    • Programs
  • Support

    • Viking Colt Robotics Forum
    • Contact Us
    • Downloads
    • Documents
    • Club Media
    • Tutorials
    • Tips
  • MORE

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    604672
    Nov 14, 2017
      ·  Edited: Nov 14, 2017

    IME problems

    in QUESTIONS

    Hey guys! It's Abby from 8931B. So my team is trying to code IME on our base for the first time and we're having problems. We one on each side of the base. One side of the base is reading positive and the other side is reading negative. The motor with the negative value is connected to a Y cable so we can't reverse the motor in the the motor sensor setup. Can anybody help?

    3 comments
    Aiden
    Nov 14, 2017

    This is an unavoidable scenario, where you can't reverse the motor, so to make the Integrated Motor Encoder (IME) read a positive value, you will need to place an absolute value bracket in your conditional statement that looks for that specific IME value. This will make the value positive even if the IME reads a negative value. The conditional statement will look something like this:

    while(abs(SensorValue[leftIME]) < 1800)
    0
    604672
    Nov 14, 2017

    Thanks Aiden!

    0
    Aiden
    Nov 14, 2017

    You are more than welcome. Did that work?

    0
    3 comments

    Last Updated: March 08, 2022

    © 2022 By 8931R Six Smart Ones