CurtinFRC / 2023-ChargedUp

Our code for FRC 2023: CHARGED UP, using Gradle, and wombat
MIT License
4 stars 16 forks source link

2023-Charged Up

Our code for FRC 2023: CHARGED UP, using Gradle

Project Setup

All Platforms

  1. Follow the guide for installing wpilibsuite https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html. Be aware of the version you install, as it must be the same as the version for this project, (E.g, 2022.4.1)

Windows

  1. Download Java (JDK 11 for best support https://www.oracle.com/java/technologies/javase-jdk11-downloads.html)

  2. "Desktop development with C++" from VS required for local debugging and simulation support https://visualstudio.microsoft.com/downloads/

  3. After this is complete you can fork or clone the project recursivly to grab the submodules needed for this project. git clone --recurse-submodules https://github.com/CurtinFRC/2023-ChargedUp.git

Linux

  1. Linux requires the build-essentials (GCC, CMake, etc...)

  2. After this is complete you can fork or clone the project recursivly to grab the submodules needed for this project. E.g git clone --recurse-submodules https://github.com/CurtinFRC/2023-ChargedUp.git

Mac

  1. Download Xcode from the app store https://apps.apple.com/au/app/xcode/id497799835?mt=12

  2. After this is complete you can fork or clone the project recursivly to grab the submodules needed for this project. git clone --recurse-submodules https://github.com/CurtinFRC/2023-ChargedUp.git

Project Install/Build

  1. Next we will need to download the roborio toolchain to cross compile the program for linuxathena. (All code in this project by a minimum must compile linuxathena)

    • Navigate to the root directory of this project and run ./gradlew installRoboRioToolchain
  2. Build the project

    • Run ./gradlew build to build and compile all gradle projects
  3. Inside build.gradle consists of options on how that project should compile. If desktop support is disabled then the project will only compile and publish shared and static linuxathena builds. If enabled, the project will build for both linuxathena and the current platform. I.e windowsx86-64 & linuxathena.

Main Project

Commands (Robot)

Commands (All)

Wombat

This project uses our teams library wombat. To run this project you will need to use this library. It can be found here. Just download and extract the code and insert into your repository. For more information see our website [here]()