Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 27 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
# Compiled Object files
*.o
*.obj

# Executables
*.bin
*.elf

# PROS
bin/
.vscode/
.cache/
compile_commands.json
temp.log
temp.errors
*.ini
.d/
# Compiled Object files
*.o
*.obj

# Executables
*.bin
*.elf

# PROS
bin/
.vscode/
.lapce/
.cache/
compile_commands.json
temp.log
temp.errors
*.ini
firmware/
.d/

# Vale
!.vale.ini
vale-styles
styles/

# Doxygen
html/
5 changes: 5 additions & 0 deletions include/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "api.h"
#include "lemlib/api.hpp"
#include "pros/adi.hpp"
#include "pros/vision.hpp"

// The following files are imported in order to provide type definitions into
Expand Down Expand Up @@ -70,6 +71,9 @@ extern pros::vision_signature_s_t BLUE_DARK_SIG;

extern pros::Rotation lateral_sensor;
extern pros::Rotation horizontal_sensor;

extern pros::Distance distance_sensor;

// forward/backward PID
extern lemlib::ControllerSettings lateral_controller;

Expand All @@ -88,6 +92,7 @@ extern lemlib::ExpoDriveCurve steer_curve;

extern pros::adi::DigitalIn drivetrainToggleSwitch;
extern pros::adi::DigitalIn autonToggleSwitch;
extern pros::adi::DigitalIn hookSwitch;

extern pros::adi::Pneumatics LatchControl;
extern pros::adi::Pneumatics HangControl;
Expand Down
10 changes: 9 additions & 1 deletion include/robot/intake.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Intake {

/**
* @brief Checks whether the intake should stop to skip the ring depending on color.
* It is the embodiment of vision sensor usage in this codebase.
* It's the embodiment of vision sensor usage in this codebase.
*/
void checkStop();

Expand All @@ -35,5 +35,13 @@ class Intake {
* @brief blue is false, red is true.
*/
bool alliance_color;

/**
* @brief Runs the hook subsystem.
* This function checks if a ring is present near the hook using a limit
* switch before activating it for one revolution.
*/

void spinHook();
};
} // namespace Robot
Loading
Loading