Skip to content

rr1706/Vision2022

Repository files navigation

Vision 2022

Rachet Rockers vision solution for FRC season 2022 "Rapid React"

Setup guide

apt install -y build-essential python3-pip cmake

  • Native

    1. pip install -r requirements.txt ensure pip bin directory is added to path
    2. cmake -G Ninja -S . -B builddir/
    3. cmake --build builddir/ --parallel
  • Jetson Nano

    1. pip install -r requirements.txt ensure pip bin directory is added to patdownload h
    2. cmake -G Ninja -S . -B builddir/ -DCMAKE_TOOLCHAIN_FILE=resources/cmake/nano.cmake
    3. cmake --build builddir/ --parallel
    4. cmake --build builddir --target deploy

Resources

Coding Conventions

  • C++

    • Folders and namespaces should be in lowercase
      • example: sources/include/rr1706/utils/
    • Files and classes should be in PascalCase
      • example: RoboRIOClient.cpp
    • Variables should be in camelCase
      • example: double cameraOffset;
    • Functions and methods should be in camelCase
      • example: void sendMessage();
    • Private variables should be prefixed with _
      • example: void _sendMessage();
    • Private function should be prefixed with _
      • example: double _cameraOffset;
    • Lines shouldn't extend past 120 columns