Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Remove project generator
Browse files Browse the repository at this point in the history
Fixes #516.
  • Loading branch information
calcmogul committed Sep 21, 2023
1 parent 61f9538 commit 7131010
Show file tree
Hide file tree
Showing 67 changed files with 4 additions and 7,153 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: Install Toolchain
run: ./gradlew installRoborioToolchain

- name: Build with Gradle
run: ./gradlew build -PbuildServer ${{ env.EXTRA_GRADLE_ARGS }}

Expand Down Expand Up @@ -82,9 +79,6 @@ jobs:
distribution: 'zulu'
java-version: 13

- name: Install Toolchain
run: ./gradlew installRoborioToolchain

- name: Build with Gradle
run: ./gradlew build -PbuildServer ${{ matrix.build-options }} ${{ env.EXTRA_GRADLE_ARGS }}

Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/integration-test.yml

This file was deleted.

16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,14 @@ Go to the directory that the repository is cloned in and run `./gradlew run` to

### Generating And Running SysId Robot Code

1. Use the Generator Widget to create a config.json
2. If you are characterizing a mechanism (Arm, Simple Motor, Elevator), deploy the project in `sysid-projects/mechanism` to your robot (`./gradlew :sysid-projects:mechanism:deploy`). For drivetrain charactarization (Drivetrains, Romi), deploy the project in `sysid-projects/drive` to your robot.
1. Add sysid vendordep to your robot code and call the logging function.
2. Deploy your robot code.
3. Connect the logger to your robot and perform the required tests.

## Building and Running SysId

SysId uses Gradle to build. To build debug and release versions of the main executable and run tests, run `./gradlew build`. During development, you can use `./gradlew run` to build and run the debug executable.

SysId also has integration tests, which involves launching a robot program with simulation physics, characterizing it and verifying the gains. These tests are not enabled by default; instead, you need to pass the `-PwithIntegration` flag into Gradle. Use `./gradlew runAnalysisIntegrationTests -PwithIntegration` or `./gradlew runGenerationIntegrationTests -PwithIntegration` to run just the analysis or project generation integration tests respectively.

There is also a robot project in `sysid-projects/analysis-test` that you can use to test out SysId. To launch the robot program, simply run `./gradlew :sysid-projects:analysis-test:simulateCpp`.

### Requirements

- [JDK 11](https://adoptium.net/temurin/releases/?version=11)
Expand All @@ -83,14 +79,6 @@ There is also a robot project in `sysid-projects/analysis-test` that you can use

## Logging Projects

SysId comes with projects that interface with the telemetry manager to provide the necessary data for analysis. These projects are stored in the `sysid-projects` folder and take in a `config.json` file in the `sysid-projects/deploy` directory to setup the robot hardware for analysis.

There is a `drivetrain` project for drivetrain analysis and a `mechanism` project for simple-motor, elevator, and arm analyses.

### Running the Projects

The executable generated from building is currently hardcoded to save to the proper project and these projects can be run normally from VSCode or the command line.

### Time Plotting Script

There is a python script in the `scripts` directory that will plot sysid data with respect to time. This is mainly intended for developers in the case that a dataset breaks sysid.
Expand Down
Loading

0 comments on commit 7131010

Please sign in to comment.