Difference between revisions of "FTC Make Coding Easier with Methods 20231025"

From wikidb
Jump to: navigation, search
(Check Points)
Line 5: Line 5:
 
* Makes code more reliable by allowing us to use the same code over and over.
 
* Makes code more reliable by allowing us to use the same code over and over.
  
 +
== References ==
 +
 +
The third diagram in
 +
 +
* [https://gm0.org/en/latest/docs/software/tutorials/mecanum-drive.html gm zero Programming Tutorial - Mecanum Drivetrain]
  
 
== Check Points ==
 
== Check Points ==
Line 25: Line 30:
  
 
* Compare using the two methods for driving in a square.
 
* Compare using the two methods for driving in a square.
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
 
== References ==
 
== References ==

Revision as of 12:37, 31 October 2023

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.

References

The third diagram in

Check Points

Start with the DriveMecanumEpp.jave program you modified in the FTC Set Up the Mecanum Training Platform 20231025 lab.

Check Point 1

  • Modify the DriveMecanumEpp.jave program to move in a square by calling the GoForward and GoSideways methods each two times.

Check Point 2

  • And a method that turns the robot name TurnBy.

Check Point 3

  • Use the new TurnBy and GoForward methods to drive the robot in a Square

Check Point 4

  • Compare using the two methods for driving in a square.







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.