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

Improve VTOL example #586

Merged
merged 2 commits into from
Nov 6, 2018
Merged

Improve VTOL example #586

merged 2 commits into from
Nov 6, 2018

Conversation

julianoes
Copy link
Collaborator

@julianoes julianoes commented Nov 6, 2018

This improves the readability of the VTOL example, and also adds some
more action to it by sending it South using goto_location.

selection_003

We don't need to warn for this case because it's ok to just get the
dummy system.
This improves the readability of the VTOL example, and also adds some
more action to it by sending it South using `goto_location`.
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

LGTM

#include <chrono>
#include <cstdint>
#include <iostream>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to mention it: my preference for headers is to include them in alphabetical order. dronecode is a dependency of the example, just as thread. Alphabetical order is always consistent, where the preference of the developer, well, depends on the developer :-).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, but I'm the correct developer 😄

#define ERROR_CONSOLE_TEXT "\033[31m" // Turn text on console red
#define TELEMETRY_CONSOLE_TEXT "\033[34m" // Turn text on console blue
#define NORMAL_CONSOLE_TEXT "\033[0m" // Restore normal console colour
static constexpr auto ERROR_CONSOLE_TEXT = "\033[31m";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Always happy to have less macros 👍

@julianoes julianoes merged commit d4fb6ca into develop Nov 6, 2018
@julianoes julianoes deleted the improve-vtol-example branch November 6, 2018 14:02
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.

2 participants