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

Added crash alert. beep beep #1010

Merged
merged 3 commits into from
Sep 1, 2014

Conversation

TShapinsky
Copy link
Member

This feature probably wont stop many crashes but it is the first iteration of collision detection. Hopefully this can spark a conversation about serious collision detection and avoidance.
closes #1006


@Override
public void onDroneEvent(DroneInterfaces.DroneEventsType event, Drone drone) {
if(event.equals(DroneInterfaces.DroneEventsType.STATE)){
Copy link
Member

Choose a reason for hiding this comment

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

@TShapinsky DroneEventsType is an enum, so you can use event == DroneEventsType.STATE instead of using the equals() method.

@m4gr3d
Copy link
Member

m4gr3d commented Aug 25, 2014

@TShapinsky looks good. Any one up for testing that feature with their drone :D

@TShapinsky
Copy link
Member Author

thanks @ne0fhyk i made some revisions based off of your input. I'm also thinking about adding an option but im not sure if its something we want people to be able to turn off

@m4gr3d m4gr3d added the Feature label Sep 1, 2014
@m4gr3d m4gr3d self-assigned this Sep 1, 2014
m4gr3d added a commit that referenced this pull request Sep 1, 2014
@m4gr3d m4gr3d merged commit e607475 into DroidPlanner:master Sep 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants