Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b474d60
Additions of Auton Actions.
COREProgrammers Feb 1, 2020
0325453
More work on auto actions
COREProgrammers Feb 7, 2020
4c76b8b
Optimized caode and fixed errors
COREProgrammers Feb 14, 2020
351bd32
finished auton actions and fixed launcher
COREProgrammers Feb 15, 2020
cbe4ff2
Fixed warnings
COREProgrammers Feb 15, 2020
756362e
worked on auton
COREProgrammers Feb 15, 2020
7b73784
Merge branch 'master' into Autonomous-Actions
COREProgrammers Feb 15, 2020
bb81c80
made auton actions and routines
COREProgrammers Feb 28, 2020
3723904
Merge branch 'master' into Autonomous-Actions
COREProgrammers Feb 28, 2020
d59ed0a
fix error in conveyor and got ready for testing
COREProgrammers Feb 28, 2020
077a844
modified auton test to have a delay between toggle
Feb 28, 2020
89d644b
setup movement in drive action
COREProgrammers Feb 29, 2020
a70947d
fixed drive action to be able to stop
COREProgrammers Feb 29, 2020
6bfe7cf
made a five ball auton
COREProgrammers Feb 29, 2020
a71b877
finished test routine config
COREProgrammers Mar 1, 2020
922996c
Conveyor testing and changes
COREProgrammers Mar 1, 2020
d5aafe2
Made intake speed set to the core constant
COREProgrammers Mar 1, 2020
baf0dcc
Merge branch 'Autonomous-Actions' of https://github.com/core2062/CORE…
COREProgrammers Mar 1, 2020
8609f16
Made conveyor auton speed set to a core constant
COREProgrammers Mar 1, 2020
42386fb
tested actions and set up 3 ball auton
COREProgrammers Mar 1, 2020
cafafa8
Merge branch 'Autonomous-Actions' of https://github.com/core2062/CORE…
COREProgrammers Mar 1, 2020
ef9877b
modified delay on auton
COREProgrammers Mar 1, 2020
9c62198
Merge branch 'master' into Autonomous-Actions
COREProgrammers Mar 1, 2020
77aca92
fixed errors
COREProgrammers Mar 1, 2020
00c2e60
Worked on making turret auton action
COREProgrammers Mar 1, 2020
8526227
Made Turret tracking auton action
COREProgrammers Mar 5, 2020
efd93cd
implented turret auton
COREProgrammers Mar 7, 2020
b002215
Merge branch 'master' into autonomous_routines
COREProgrammers Mar 11, 2020
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
20 changes: 20 additions & 0 deletions src/auto/FiveBallRoutine.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "FiveBallRoutine.h"

FiveBallRoutinePickup::FiveBallRoutinePickup() : COREAuton("Three Ball Routine") {}

void FiveBallRoutinePickup::AddNodes() {
delayNode = new Node(5, new DelayAction());
launcherOnNode = new Node(5, new LaunchBallsAction(LAUNCHER_ON));
intakeOnNode = new Node(5, new IntakePowerCellsAction(INTAKE));
driveNode1 = new Node(5, new DriveAction(BACKWARD)); //replace with pathfinder
driveNode2 = new Node(5, new DriveAction(FORWARD)); //replace with pathfinder
conveyorOnNode = new Node(5, new ConveyorAction(CONVEYOR_ON));
AddFirstNode(delayNode);
delayNode->AddNext(launcherOnNode);
launcherOnNode->AddNext(intakeOnNode);
intakeOnNode->AddNext(driveNode1);
driveNode1->AddNext(driveNode2);
driveNode2->AddNext(conveyorOnNode);
conveyorOnNode->AddNext(intakeOnNode);
intakeOnNode->AddNext(driveNode1);
}
26 changes: 26 additions & 0 deletions src/auto/FiveBallRoutine.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

#include <string>
#include <CORERobotLib.h>
#include "LaunchBallsAction.h"
#include "ConveyorAction.h"
#include "DriveAction.h"
#include "DelayAction.h"
#include "IntakePowerCellsAction.h"
// #include "AutonActionTest.h"

using namespace CORE;
using namespace std;

class FiveBallRoutinePickup: public COREAuton {
public:
FiveBallRoutinePickup();
void AddNodes() override;
private:
Node * delayNode;
Node * launcherOnNode;
Node * conveyorOnNode;
Node * intakeOnNode;
Node * driveNode1;
Node * driveNode2;
};
16 changes: 16 additions & 0 deletions src/auto/ThreeBallRoutinePickup.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "ThreeBallRoutinePickup.h"

ThreeBallRoutinePickup::ThreeBallRoutinePickup() : COREAuton("Three Ball Routine") {}

void ThreeBallRoutinePickup::AddNodes() {
delayNode = new Node(5, new DelayAction());
launcherOnNode = new Node(5, new LaunchBallsAction(LAUNCHER_ON));
conveyorOnNode = new Node(5, new ConveyorAction(CONVEYOR_ON));
intakeOnNode = new Node(5, new IntakePowerCellsAction(INTAKE));
driveNode = new Node(5, new DriveAction(FORWARD)); //replace with pathfinder
AddFirstNode(delayNode);
delayNode->AddNext(launcherOnNode);
launcherOnNode->AddNext(conveyorOnNode);
conveyorOnNode->AddNext(intakeOnNode);
intakeOnNode->AddNext(driveNode);
}
25 changes: 25 additions & 0 deletions src/auto/ThreeBallRoutinePickup.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#pragma once

#include <string>
#include <CORERobotLib.h>
#include "LaunchBallsAction.h"
#include "ConveyorAction.h"
#include "DriveAction.h"
#include "DelayAction.h"
#include "IntakePowerCellsAction.h"
// #include "AutonActionTest.h"

using namespace CORE;
using namespace std;

class ThreeBallRoutinePickup: public COREAuton {
public:
ThreeBallRoutinePickup();
void AddNodes() override;
private:
Node * delayNode;
Node * launcherOnNode;
Node * conveyorOnNode;
Node * intakeOnNode;
Node * driveNode;
};