-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Improve VTOL example #586
Conversation
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`.
There was a problem hiding this 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> |
There was a problem hiding this comment.
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 :-).
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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 👍
This improves the readability of the VTOL example, and also adds some
more action to it by sending it South using
goto_location
.