Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.
/ DeepSpace Public archive

🤖 The code behind our 2019 season

License

Notifications You must be signed in to change notification settings

frc5024/DeepSpace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepSpace CodeFactor DOI

Our DeepSpace code is built on top of BaseBot. The documentation can be found HERE

Installation

This code can be "installed" in one of two ways. First, is via an official release:

These are the steps:

  • Get the latest release from github
  • Unpack the compressed archive
  • Open it as a folder in vscode
  • Set your team number in wpilib
  • Deploy using wpilib

The second way is to use rolling release / waterfall. Just do the steps above, but use git to clone the master branch instead of grabbing the latest release.

NOTE: 5024 members should always use the second method.

Building Documentation

To build the c++ documentation, we use a custom Doxygen config. To use this config, run this command on a linux machine:

doxygen ./doxygen.config

To build the Controller Layout files, run this command (python3 may need to be changed to pythonor py3 depending on the system):

python3 ./buildcml.py ./controller_layout.cml.json

NOTE: Linux is required for the doxygen documents due to our use of unix-style path notation.

EdgeLight

Our 2019 robots both have RGB LED strips along their sides. These are used to disply robot status and also just to look cool. The current funciton of the lights are as follows:

Colour Pattern Meaning
Red Heartbeat Red alliance auto enabled
Blue Heartbeat Blue alliance auto enabled
Red Solid Red alliance teleop enabled
Blue Solid Blue alliance teleop enabled
Green Solid Vision / Finger indication

Pull requests

Pull requests is our prefered method of merging code. For a PR to be merged, it must:

  • Pass style checking
  • Be approved by a mentor or team lead
  • Compile without any errors or warnings

Deployment

When deploying code to our robots we have a problem where, on the first few tries, the deployment fails due to not being able to find the RIO. Just keep trying, and it will eventually work.

The team

This codebase is built and tested by the 5024 programming team with help from our mentors: