FTC Make Coding Easier with Methods 20231025

From wikidb
Revision as of 12:02, 31 October 2023 by Edc (Talk | contribs)

Jump to: navigation, search

Why Use Abstraction

  • Makes the program easier to think about
  • Makes is easier to test programs - we can test small part individually
  • Makes the code easier to user over and over saving time. We can more easily takes code from one program and use it somewhere else.
  • Makes code more reliable by allowing us to use the same code over and over.

Refined Demo Code

TBD: Complete code refinements and integrate into this lab.

Simplified PowerUpMotors to us Ticks for distance and velocity. Add GoForward and GoSideways helper methods

Check Points

  1. Compute how many Ticks per millimeter the robot move forward.
    1. Sidesize
    2. Why are they different
  2. Find a web reference computer these values based on Mecadum wheels size and motor configuration
  3. Do the computations and compare with your test results
  4. Measure how well the moveForward method drove the robot straight
    1. How does speed and distance impact

References

Using the Android Debugging Bridge to Locate Bugs

TBD: Move to its own section - add instruction and ...

Check Points

TBD

Additional References

To be screened.