Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Climb subsystem #6

Draft
wants to merge 43 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
83d140e
BackAlgaeSubsystem finish + hypthetical contro sch
Tonyxwu Jan 15, 2025
9568ab3
BackAlgaeSubsystem done + hypothetical control sch
Tonyxwu Jan 15, 2025
beac2fc
goofy minor fixes
Tonyxwu Jan 15, 2025
c95aaa1
climb command
siyoyoCode Jan 15, 2025
c8411b7
fixed sparkmax follow errors
siyoyoCode Jan 17, 2025
e36601c
fixed climb logic
siyoyoCode Jan 17, 2025
46cb6ff
fixed climb logic
siyoyoCode Jan 17, 2025
1b2d812
removed pid stuff
siyoyoCode Jan 18, 2025
dcf071e
change max speed back to 6000
6kn4eakfr4s Jan 18, 2025
5155c23
Fix PS5 controller can't rotate after power cycle issue
6kn4eakfr4s Jan 20, 2025
b5a9800
make PID arrays to allow different PIDs across modules
6kn4eakfr4s Jan 20, 2025
daa8872
add debug for drive and steer
6kn4eakfr4s Jan 20, 2025
75d8015
remove shuffleboard tab since using advantage scope
6kn4eakfr4s Jan 20, 2025
ef71d47
added constants to toggle debug for drive and steer
6kn4eakfr4s Jan 20, 2025
5585d6a
initializes nt
6kn4eakfr4s Jan 20, 2025
fba320c
sync, timestamp seems weird
6kn4eakfr4s Jan 21, 2025
16a288a
Add position as part of the kraken log
6kn4eakfr4s Jan 22, 2025
588ba45
Only start log once and don't use phoenix signal logs
6kn4eakfr4s Jan 22, 2025
dc8c2c1
remove phoenix signal logs
6kn4eakfr4s Jan 22, 2025
aa5a783
Untested class
6kn4eakfr4s Jan 28, 2025
ee59994
Untested Talon Class
6kn4eakfr4s Jan 28, 2025
612f914
Added methods to accomodate usages in existing branches
6kn4eakfr4s Jan 29, 2025
681abdd
Enable PIDF tuning through NT + Logging more things for spark max.
6kn4eakfr4s Jan 29, 2025
560def0
Allows changing talon pid through NT
6kn4eakfr4s Jan 29, 2025
88dd0ab
fixed typo
6kn4eakfr4s Jan 29, 2025
1870d90
Added comments & allowed one spark max to follow another
6kn4eakfr4s Jan 30, 2025
ccd95ce
Using optional int to represent the can ID to follow
6kn4eakfr4s Jan 30, 2025
aa0ced7
Redo climb through logged motors. Use trigget to set speed instead of…
6kn4eakfr4s Jan 30, 2025
dd97819
Init targetSpeed to 0
6kn4eakfr4s Feb 2, 2025
0ca186a
use OptionalInt.empty() instead of null
6kn4eakfr4s Feb 2, 2025
9992e9b
add binding for climb
CrolineCrois Feb 5, 2025
2541274
rumble in robot container
swaswa999 Feb 5, 2025
0877d12
using kraken-climb using option and create button
CrolineCrois Feb 5, 2025
eb5866c
fix rumble
swaswa999 Feb 5, 2025
44d3644
increase speed
swaswa999 Feb 5, 2025
1521708
qucik rumble fix
swaswa999 Feb 6, 2025
c2c7328
small changes
swaswa999 Feb 6, 2025
98a38b6
flip navx
CrolineCrois Feb 6, 2025
befc29d
climb to not use logged sparkmax for more configs tmp
CrolineCrois Feb 7, 2025
faa1a98
added reverse
swaswa999 Feb 7, 2025
9b7df20
quick changes for rumble :D
swaswa999 Feb 7, 2025
04b7919
softlimit added, it is 53, but need to double check again
swaswa999 Feb 8, 2025
5e735da
fixed soft limit, forks great now
swaswa999 Feb 10, 2025
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
Prev Previous commit
Next Next commit
remove phoenix signal logs
6kn4eakfr4s committed Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit dc8c2c1c48bc40e3b8f44910d2c8f514c6096821
Original file line number Diff line number Diff line change
@@ -18,30 +18,31 @@ public class PhoenixLoggingSubsystem extends SubsystemBase{

public PhoenixLoggingSubsystem(FieldManagementSubsystem fieldManagementSubsystem){
this.fieldManagementSubsystem = fieldManagementSubsystem;
SignalLogger.setPath("/media/sda1/ctre-logs/");
SignalLogger.setPath("/u/ctre-logs/");
SignalLogger.start();
}

@Override
public void periodic(){
MatchStatus currentMatchStatus = fieldManagementSubsystem.getMatchStatus();
if(currentMatchStatus == MatchStatus.AUTON
|| currentMatchStatus == MatchStatus.TELEOP
&& !isLogging){
SignalLogger.start();
DataLogManager.start();
// DriverStation.startDataLog(DataLogManager.getLog());
isLogging = true;
}
else if(currentMatchStatus == MatchStatus.ENDED){
SignalLogger.stop();
DataLogManager.stop();
isLogging = false;
}
else if(fieldManagementSubsystem.getRobotStatus() == RobotStatus.DISABLED){
DataLogManager.stop();
SignalLogger.stop();
isLogging = false;
}
// MatchStatus currentMatchStatus = fieldManagementSubsystem.getMatchStatus();
// if(currentMatchStatus == MatchStatus.AUTON
// || currentMatchStatus == MatchStatus.TELEOP
// && !isLogging){
// SignalLogger.start();
// DataLogManager.start();
// // DriverStation.startDataLog(DataLogManager.getLog());
// isLogging = true;
// }
// else if(currentMatchStatus == MatchStatus.ENDED){
// SignalLogger.stop();
// DataLogManager.stop();
// isLogging = false;
// }
// else if(fieldManagementSubsystem.getRobotStatus() == RobotStatus.DISABLED){
// DataLogManager.stop();
// SignalLogger.stop();
// isLogging = false;
// }
// System.out.println("Log Dir: " + DataLogManager.getLogDir());
}
}