Programming: Difference between revisions

From 1511Wookiee
Jump to navigationJump to search
No edit summary
No edit summary
Line 23: Line 23:
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
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">&nbsp;</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>
<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">&nbsp;</div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>
= Preseason Software Installation =
Here are instruction and download links if you want to install the software to your own computer:
*# '''THESE INSTRUCTIONS AND LINKS ARE FOR 2021 ONLY!'''
*# '''MAKE SURE TO DO THESE IN ORDER!'''
*# Install WPILib - [https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html Instructions] and [https://github.com/wpilibsuite/allwpilib/releases/download/v2021.3.1/WPILib_Windows64-2021.3.1.iso Download Link]
*# Install CTRE Phoenix Libraries [https://github.com/CrossTheRoadElec/Phoenix-Releases/releases/download/v5.19.4.1/CTRE_Phoenix_Framework_v5.19.4.1.exe Download Link]
*# '''If you are just doing programming you can skip this step!''' This step is only needed if you want the Driver Station Software: install FRC Game Tools using [https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/frc-game-tools.html these instructions].


= Programming Preseason =
= Programming Preseason =
Line 30: Line 39:
*[[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>]]  
* Software Installation:
*# '''THESE INSTRUCTIONS AND LINKS ARE FOR 2021 ONLY!'''
*# '''MAKE SURE TO DO THESE IN ORDER!'''
*# Install WPILib - [https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html Instructions] and [https://github.com/wpilibsuite/allwpilib/releases/download/v2021.3.1/WPILib_Windows64-2021.3.1.iso Download Link]
*# Install CTRE Phoenix Libraries [https://github.com/CrossTheRoadElec/Phoenix-Releases/releases/download/v5.19.4.1/CTRE_Phoenix_Framework_v5.19.4.1.exe Download Link]
*# '''If you are just doing programming you can skip this step!''' This step is only needed if you want the Driver Station Software: install FRC Game Tools using [https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/frc-game-tools.html these instructions].


== Lessons ==
== Lessons ==

Revision as of 18:15, 6 December 2021

FRC and WPILib References

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

 

Preseason Software Installation

Here are instruction and download links if you want to install the software to your own computer:

    1. THESE INSTRUCTIONS AND LINKS ARE FOR 2021 ONLY!
    2. MAKE SURE TO DO THESE IN ORDER!
    3. Install WPILib - Instructions and Download Link
    4. Install CTRE Phoenix Libraries Download Link
    5. If you are just doing programming you can skip this step! This step is only needed if you want the Driver Station Software: install FRC Game Tools using these instructions.


Programming Preseason

Lessons

  • Lesson 1: Make a motor run
  • Lesson 2: Control motor direction using a gamepad
  • Lesson 3: Using Digital sensors to limit range of motion