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

From wikidb
Jump to: navigation, search
(Additional References)
(Using the Android Debugging Bridge to Locate Bugs)
Line 28: Line 28:
  
 
* [https://developer.android.com/studio/command-line/adb Google Reference]
 
* [https://developer.android.com/studio/command-line/adb Google Reference]
 +
* [https://www.firstinspires.org/sites/default/files/uploads/resource_library/ftc/control-system-troubleshooting-guide.pdf FIRST Troubleshooting  reference - See chapter 15, page 72]
 
* [https://gist.github.com/Pulimet/5013acf2cd5b28e55036c82c91bd56d8 Adb Commands]
 
* [https://gist.github.com/Pulimet/5013acf2cd5b28e55036c82c91bd56d8 Adb Commands]

Revision as of 12:53, 8 March 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.

Move the Robot in a Square Demo Code

Check Points

  1. Copy the Drive In A Square program to your robot and test it.
  2. Investigate a simplified outline of the move in a square program to help you understand how to write methods. See FTC Drive In a Square Outline 20230112.
  3. Modify the program to move forward 18 inches, turn left 90 degrees, and move backward 12 inches.
  4. Modify the program to work with 4 motors so you can support the Mecanum drivetrain.

Using the Android Debugging Bridge to Locate Bugs

Additional References

To be screened.