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 various changes for the stick and craft overlay. #27

Merged
merged 2 commits into from
May 25, 2019

Conversation

j4y4r
Copy link
Contributor

@j4y4r j4y4r commented May 23, 2019

Hey,

as described in the Issue
#13
@stylesuxx made some changes to the cleanflight blackbox-tools in the past.
I added some other changes myself and merged them into this repo.

Following things were added/changed :

Added functionality to set stick trail radius

Added functionality to set stick radius.

Add options to resize and position the craft.

Added functioality to render stick traces

Added option for stick crosshair color

Added functionality to set stick area color

Adjusted the default value of the stick color

Added functionality to set sticks color

Adjusted text color stick option

Added new and missing options to the README

Added functionlity for custom text color. This now only applies to the stick overlay labels

Use 0 as default for stick positions

Added functionality to set custom size of the stick overlay boxes

Allow to offset stick overlay from the right and from the top

Added functionality to disable acc display

@j4y4r j4y4r mentioned this pull request May 23, 2019
@@ -326,10 +347,25 @@ void updateFieldMetadata()
void drawCommandSticks(int64_t *frame, int imageWidth, int imageHeight, cairo_t *cr)
{
double rcCommand[4] = {0, 0, 0, 0};
const int stickSurroundRadius = imageHeight / 11, stickSpacing = stickSurroundRadius * 3;
int stickSurroundRadius = imageHeight / 11;
if(options.sticksWidth > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add spaces after keywords? In general, the coding style rules from https://github.com/betaflight/betaflight/blob/master/docs/development/CodingStyle.md should be applied wherever possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As suggested spaces have been added to comply with the coding guidelines.

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.

None yet

2 participants