Reference for Function Calls Within Code

Reference of function calls [1]

  • celerate(m, p1, p2, t)

    • Accelerates or decelerates motors m from start speed p1 to end speed p2 in t seconds.
  • motorSpeed(m, p)

    • Sets motor m to percent power p.
  • goFor(t)

    • Runs the motors at their current settings for t seconds.
  • brake(m)

    • Brakes motors m.
  • reverse(m)

    • Run motor m in reverse.
  • goToRelativePosition(n)

    • Moves the vehicle to position n based on its current position.
  • goToAbsolutePosition(n)

    • Moves the vehicle to position n based on its start position.

References

[1] Ohio State University Fundamentals of Engineering Program. “Preliminary Research and Design”. [Course documentation]. Available: https://osu.app.box.com/s/diy2i8qb3l86ngb4f9j5x7geajy3epup