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

From wikidb
Jump to: navigation, search
(More the Robot in a Square Demo Code)
(More the Robot in a Square Demo Code)
Line 7: Line 7:
 
= More the Robot in a Square Demo Code =
 
= More the Robot in a Square Demo Code =
  
* [https://github.com/edcepp/DeLaSalle/blob/main/DriveInASquareEpp.java DriverInASquareEpp.java]
+
* [https://github.com/edcepp/DeLaSalle/blob/main/DriveInASquareEpp.java DriveInASquareEpp.java]
  
 
= Code Outline =
 
= Code Outline =
  
 
* Code based on [[FTC_Motor_Encoders_20200304]]
 
* Code based on [[FTC_Motor_Encoders_20200304]]

Revision as of 11:22, 12 January 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.

More the Robot in a Square Demo Code

Code Outline