This repository was archived by the owner on Apr 22, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ scp admin@10.50.24.2:/home/lvuser/FRC_UserProgram.log ./RIO-Logs/
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ void Climb::Initialize() {
1313 this ->armSpeed = 0.0 ;
1414 this ->crawlSpeed = 0.0 ;
1515 this ->legSpeed = 0.0 ;
16- }
16+ }
1717
1818// Called repeatedly when this Command is scheduled to run
1919void Climb::Execute () {
@@ -28,6 +28,10 @@ void Climb::Execute() {
2828 this ->legSpeed = this ->pJoyOp ->GetBumper (Hand::kRightHand )? -1 : 0 ;
2929 this ->legSpeed = this ->pJoyOp ->GetBumper (Hand::kLeftHand ) ? 1 : this ->legSpeed ;
3030
31+ if (this ->legSpeed < 0.0 ){
32+ Utils::EdgeLight::Append (LedColour::kSOLID_GREEN );
33+ }
34+
3135 // Set motor outputs
3236 Robot::m_Arm->MoveArm (this ->armSpeed );
3337 Robot::m_CrawlDrive->Move (this ->crawlSpeed );
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ void ClimbManager::Execute() {
2323
2424 // Signal all commands to kill themselves
2525 this ->CurrentClimbState = this ->ClimbState ::kActive ;
26+ Log (" Climb mode active!" );
2627
27- // Start vibrating driver controller
28+ // Start vibrating driver controller
2829 this ->pJoyOp ->SetRumble (frc::GenericHID::RumbleType::kRightRumble , 0.5 );
2930}
3031
Original file line number Diff line number Diff line change 77#include < fstream>
88
99#include " Utils/EdgeLight.h"
10+ // /home/lvuser/FRC_UserProgram.log
1011
1112// Subsystems
1213DriveTrain *Robot::m_DriveTrain;
Original file line number Diff line number Diff line change 44#include < frc/commands/Command.h>
55
66#include < Subsystems/CrawlDrive.h>
7+ #include < Utils/EdgeLight.h>
78#include " RobotMap.h"
89#include < frc/GenericHID.h>
910
Original file line number Diff line number Diff line change 1010
1111// Whenever possible, Macros and definitions are used in order to preserve memory
1212
13+ #include < iostream>
14+
1315#define DODEBUG 0
1416
1517// Camera mappings
8688#define Header (x ) std::cout << x
8789#define EndHeader () std::cout << " DONE" << std::endl
8890
91+ #define Log (x ) std::cout << x << std::endl;
92+
8993#endif // _ROBOTMAP_HG_
You can’t perform that action at this time.
0 commit comments