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.
Callum & Kavin - Elevator partially working on test board
- Loading branch information
Student
committed
Dec 9, 2024
1 parent
45129a7
commit f88e2fe
Showing
7 changed files
with
30 additions
and
18 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
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,16 +1,19 @@ | ||
#include "HAL/Elevator.h" | ||
#include "InputManager/ElevatorManager.h" | ||
#include <iostream> | ||
#include <frc/Timer.h> | ||
|
||
ElevatorManager::ElevatorManager() | ||
{ | ||
|
||
void HandleInput(RobotControlData& control_data) { | ||
} | ||
|
||
void ElevatorManager::HandleInput(RobotControlData& control_data) { | ||
if (control_data.elevatorInput.up) { | ||
m_elevator.ProfiledMoveToHeight(true); | ||
} else if(control_data.elevatorInput.down) { | ||
m_elevator.ProfiledMoveToHeight(false); | ||
} | ||
}; | ||
void Reset(){ | ||
void ElevatorManager::Reset(){ | ||
m_elevator.ProfiledMoveToHeight(0); | ||
}; |
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
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
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