Difference between revisions of "FTC State"

From wikidb
Jump to: navigation, search
(Created page with " = Resources = * [http://stemrobotics.cs.pdx.edu/node/4746 Lesson: Exercise: Using Encoders] STEMRobotics - The example code I used * [http://modernroboticsedu.com/mod/lesson...")
 
(Example Code)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
= Resources =
+
= References =
  
* [http://stemrobotics.cs.pdx.edu/node/4746 Lesson: Exercise: Using Encoders] STEMRobotics - The example code I used
 
* [http://modernroboticsedu.com/mod/lesson/view.php?id=76&pageid=87 Motor Modes]
 
* [https://en.wikipedia.org/wiki/PID_controller PID Controller]
 
** See Mathematical form for equation
 
** See Manual tuning for P I D constant impacts
 
* [https://ftc-tricks.com/dc-motors/ Overview: DC Motors]
 
  
= Example Code =
+
== A2818 State Tutorials ==
  
* [[FTC Drive Encoder Code]] From STEMRobotics site
+
* [https://github.com/oscarrobotics/FTC-2015-OpModes/blob/master/A2818_StateMachine.java Example State Machine Java Code]
* [[FTC Drive Straight Code]]
+
* [https://www.youtube.com/watch?v=Pu7PMN5NGkQ FTC State Machines Part 1]
 +
* [https://www.youtube.com/watch?v=-J_m-FdO45c FTC State Machines Part 2]
 +
* [https://www.youtube.com/watch?v=cPgJ8bbBj_o FTC State Machines Part 3]
  
= Exercises =
+
= Example Code =
 
+
# The Drive Straight Code above controls the motors so that the speed of the motor is set and constant. Convert this program to one where the power applied to each motor is constant.
+
 
+
= Solutions =
+
  
* [[FTC Drive Power Code]] - Constant motor power.
+
* [[FTC Concept Ramp Motor Speed]] From the FTC SDK samples directory
 +
* [[FTC Ramp Two Motors]]: Enhance above to include two motors
 +
* [[FTC Enumerated State Names]]: Convert above from if-then-else to switch statement and enumerated state names
 +
* [[FTC Bumper State Change]]: Modify above to use a touch sensor for a state change.
 +
* [[FTC Timer Based Reverse]]: Modify above to stop reverse after a given time.

Latest revision as of 11:58, 21 September 2018

References

A2818 State Tutorials

Example Code