Skip to content

Autonomous#27

Merged
GarrettBurroughs merged 22 commits intomasterfrom
Autonomous
Jan 24, 2019
Merged

Autonomous#27
GarrettBurroughs merged 22 commits intomasterfrom
Autonomous

Conversation

@GarrettBurroughs
Copy link
Copy Markdown
Member

Added a basic autonomous framework. This includes:

  • Flexible autonomous class
  • Built-in autonomous features
  • Streamlined autonomous
  • A comprehensive state machine that is capable of running states
  • Built-in state control

It is also possible that the state machine aspect of the autonomous framework will change to allow for more flexible auto-modes

Copy link
Copy Markdown
Member Author

@GarrettBurroughs GarrettBurroughs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes need to be made before merge

There are still some auto features that need to be implemented, but as this is just the framework behind it, this can be merged without those


/**
* Created by MHS Robotics on 1/26/2018.
*
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc and update @SInCE

3. Alloy Autonomus - This is the basic framework for alloy auto's. An alloy autonomous takes care of running the state machine<br>
that the auto is using so all the user has to do is create the state machine and define functionality.
You can read more about how to use an Alloy Autonomous [Here](https://github.com/GarrettBurroughs/Alloy/wiki/Creating-An-Auto-Mode)
<<<<<<< HEAD
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix merge

* @param currentState the current state so that it can be used in the debug
* @return debug information about the state
*/
public String debugInfo(int currentState) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to give different levels of debugs depending on the debug mode

this.name = name;
this.states = new ArrayList<>(Arrays.asList(states));
this.finalState = finalState;
description = "A state machine";
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to

description = name + "state machine";

and add default name

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just get rid of default description, and set default name to "state machine"

* A conditional state takes in a boolean input, and evaluates it when the state starts.
* If the input is true when the state starts, the passed in state will execute.
*/
public class ConditionalState extends State {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to simple auto

@GarrettBurroughs
Copy link
Copy Markdown
Member Author

fixes #22

@GarrettBurroughs GarrettBurroughs merged commit 0b73746 into master Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant