FTC Make Coding Easier with Methods 20231025
From wikidb
Contents
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.
Check Points
Start with the program you modified in the FTC Set Up the Mecanum Training Platform 20231025 lab.
Check Point 1
- Modify the program to move in a square by calling the GoForward and GoSideways methods.
References
Using the Android Debugging Bridge to Locate Bugs
TBD: Move to its own section - add instruction and ...
- FTC adb Android Debugging Bridge 202008: My notes
- DriveInASquareEppLog.java: The Drive in a Square program with debugging capabilities added.
- FTC Starting up the Debugger Summary 20230308
- DriveInASquareEppLog.txt: Example subset of log file
Check Points
TBD
Additional References
To be screened.