Programming: Difference between revisions

From 1511Wookiee
Jump to navigationJump to search
No edit summary
No edit summary
Line 19: Line 19:
Camera Server Port is 1181
Camera Server Port is 1181
<div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output">
<div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output">
<div class="mw-parser-output">
<div class="mw-parser-output">
<div class="mw-parser-output">
<div class="mw-parser-output">
<div class="mw-parser-output">
Line 26: Line 27:
*[[Preseason_Build_Project|<font color="#0066cc">Build a Project</font>]]  
*[[Preseason_Build_Project|<font color="#0066cc">Build a Project</font>]]  
*[[Preseason_Deploy_Code|<font color="#0066cc">Deploy a Project to Robot</font>]]  
*[[Preseason_Deploy_Code|<font color="#0066cc">Deploy a Project to Robot</font>]]  
<div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output">
<div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output">
<div class="mw-parser-output">
== Lessons ==
== Lessons ==
<div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output">
<div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output"><div class="mw-parser-output">
Line 34: Line 34:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NOTE: Get Robot.cpp & Robot.h file contents from:&nbsp; [http://penfieldrobotics.com/wiki/images/b/bc/Preseason_Initial.zip <font color="#0066cc">Preseason_Initial.zip</font>]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NOTE: Get Robot.cpp & Robot.h file contents from:&nbsp; [http://penfieldrobotics.com/wiki/images/b/bc/Preseason_Initial.zip <font color="#0066cc">Preseason_Initial.zip</font>]


[http://penfieldrobotics.com/wiki/images/8/84/Preseason_Lesson1_TurnMotor.txt <font color="#0066cc">Lesson 1</font>]: Make a motor run
[[Preseason_Lesson1|<font color="#0066cc">Lesson 1</font>]]: Make a motor run


[[Preseason_Lesson2|Lesson 2]]: Control motor direction using the joystick
[[Preseason_Lesson2|Lesson 2]]: Control motor direction using the joystick
Line 43: Line 43:


[[Preseason_Lesson5|Lesson 5]]: Read encoder while motor moves
[[Preseason_Lesson5|Lesson 5]]: Read encoder while motor moves
</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div></div></div>
</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div></div></div>

Revision as of 12:02, 9 December 2019

FRC and WPILib References

Quite Useful Things to Remember

Camera Server Port is 1181

Programming Preseason

Lessons

Create a 'test' project following these instructions: Create Test Project

      NOTE: Get Robot.cpp & Robot.h file contents from:  Preseason_Initial.zip

Lesson 1: Make a motor run

Lesson 2: Control motor direction using the joystick

Lesson 3: Automatically stop motor when limit switch is tripped

Lesson 4: Change motor speed using joystick

Lesson 5: Read encoder while motor moves