forked from FRC830/2024Robot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
189 additions
and
2,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build | ||
|
||
# Controls when the action will run | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: wpilib/roborio-cross-ubuntu:2024-22.04 | ||
|
||
# Tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Add repository to git safe directories | ||
run: git config --global --add safe.directory $GITHUB_WORKSPACE | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build the robot code | ||
run: ./gradlew build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[](https://github.com/FRC830/2024Robot/actions/workflows/main.yml) | ||
[](https://github.com/FRC830/2024WAPUR/actions/workflows/build.yml) | ||
|
||
The 2024 Robot | ||
The 2024 WAPUR Robot |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "HAL/Claw.h" | ||
#include <iostream> | ||
|
||
|
||
Claw::Claw() | ||
{ | ||
// TODO - configure mechanism | ||
std::cout << "configured claw mechanism" << std::endl; | ||
} | ||
|
||
void Claw::Clasp() | ||
{ | ||
if (_signal != 1) | ||
{ | ||
std::cout << "claw is clasping" << std::endl; | ||
_signal = 1; | ||
} | ||
|
||
// TODO - implement mechanism to clasp | ||
} | ||
|
||
void Claw::Unclasp() | ||
{ | ||
if (_signal != 2) | ||
{ | ||
std::cout << "claw is unclasping" << std::endl; | ||
_signal = 2; | ||
} | ||
|
||
// TODO - implement mechanism to clasp | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "HAL/Elevator.h" | ||
#include <iostream> | ||
|
||
|
||
Elevator::Elevator() | ||
{ | ||
// TODO - configure motors | ||
std::cout << "configured elevator motors" << std::endl; | ||
} | ||
|
||
void Elevator::ProfiledMoveToHeight(double desired_height) | ||
{ | ||
// TODO - implement profiled move semantics | ||
std::cout << "elevator performing profiled move to " << desired_height << std::endl; | ||
SetHeight(desired_height); | ||
} | ||
|
||
double Elevator::GetHeight() | ||
{ | ||
// TODO - read motors for height | ||
std::cout << "elevator height measured as 0.0 inches" << std::endl; | ||
return 0.0f; | ||
} | ||
|
||
void Elevator::SetHeight(double desired_height) | ||
{ | ||
// TODO - set motors to go to height | ||
std::cout << "elevator setting height to " << desired_height << std::endl; | ||
} |
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.