Programming: Difference between revisions
From 1511Wookiee
Jump to navigationJump to search
Programming (talk | contribs) No edit summary |
Programming (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
**[http://www.ctr-electronics.com/downloads/api/cpp/html/index.html CTRE Phoenix API] - API Reference | **[http://www.ctr-electronics.com/downloads/api/cpp/html/index.html CTRE Phoenix API] - API Reference | ||
<div class="mw-parser-output"> | |||
= Quite Useful Things to Remember = | = Quite Useful Things to Remember = | ||
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"> | Color sensor proximity reading ranges from 0-2048, the higher the value the closer the surface. A reading of ~300 or greater is enough for a reliable color read | ||
<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> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> | ||
<div class="mw-parser-output"> | |||
= Programming Preseason = | = Programming Preseason = | ||
Revision as of 19:45, 4 January 2020
Programming Sub-pages and Links
FRC and WPILib References
- FRC Control System Documentation (aka "wpilib screensteps")
- FRC C++ WPILib API Docs
- CTRE Phoenix - Third party software drivers used to talk to Talon SRX's over CAN bus:
- CTRE Phoenix Docs - Verbose documentation and detailed guides
- CTRE Phoenix API - API Reference
Quite Useful Things to Remember
Camera Server Port is 1181
Color sensor proximity reading ranges from 0-2048, the higher the value the closer the surface. A reading of ~300 or greater is enough for a reliable color read
Programming Preseason
Lessons
Create Test Project: Do this before starting any lessons
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
Lesson 6: Turbo and Slow speed