Stick calibration

More
18 Feb 2016 03:12 - 18 Feb 2016 03:12 #43225 by aperseghin
Stick calibration was created by aperseghin
When sticks are calibrated the screen is not cleared

Canter all
Sticks and knobs
and then press ENT
*enter is pressed

Move sticks an knobs
to max & min positions
and then press ENT
*enter is pressed

Calibration done.knobs
to max & min positions
and the press ENT


As you see on the third screen, the previous screen is not cleared before writing the new information

I am using small fonts
667678f
this does not seem to break calibration, its just a nuisance bug
should be an easy fix
Last edit: 18 Feb 2016 03:12 by aperseghin.

Please Log in or Create an account to join the conversation.

More
19 Feb 2016 19:27 #43328 by aperseghin
Replied by aperseghin on topic Stick calibration
Has anyone confirmed this issue?

Please Log in or Create an account to join the conversation.

More
19 Feb 2016 20:46 #43331 by Sero
Replied by Sero on topic Stick calibration
Confirmed on a 6s.

A day without flying can't be called a day.

Please Log in or Create an account to join the conversation.

More
22 Feb 2016 17:55 #43465 by aperseghin
Replied by aperseghin on topic Stick calibration
good that means that its not just me, this should be pretty simple to fix.

What is the preferred way to report bugs?

Please Log in or Create an account to join the conversation.

More
22 Feb 2016 18:01 #43468 by Sero
Replied by Sero on topic Stick calibration

A day without flying can't be called a day.

Please Log in or Create an account to join the conversation.

More
22 Feb 2016 18:02 #43469 by aperseghin
Replied by aperseghin on topic Stick calibration
done, this is also confirmed in the emulator

Please Log in or Create an account to join the conversation.

More
22 Feb 2016 18:44 #43472 by aMax
Replied by aMax on topic Stick calibration
Just an old one, at least since 4.0.1-2cde795.....Devo7e.

Devo7e, TaranisQ X7, R9M , 4in1 MM, Futaba FC18plusV3.2 & DFT/FLD-02

Please Log in or Create an account to join the conversation.

More
08 Mar 2016 22:56 #44291 by tcaudill01
Replied by tcaudill01 on topic Stick calibration
I'm not sure how (or if I'm even allowed) to upload edits to BitBucket or Bug tracker so I'll post it here.

The code that needs edited to fix this bug is found in " _tx_configure.c" which is located in src\pages\common\

Look for lines 91 & 92
91 .... }
92 .... snprintf(tempstring, sizeof(tempstring), "%s", _tr("Calibration done.\n \nPress ENT."));

Insert the following text after 91: "GUI_DrawBackground(0, 0, 128, 64);" Remove Quotes ;)
This wipes the screen prior to new text being displayed.
It should now look like this;



91 .... }
92 .... GUI_DrawBackground(0, 0, 128, 64);
93 .... snprintf(tempstring, sizeof(tempstring), "%s", _tr("Calibration done.\n \nPress ENT."));

Hope this helps.

Please Log in or Create an account to join the conversation.

More
09 Mar 2016 01:38 - 09 Mar 2016 01:39 #44299 by hexfet
Replied by hexfet on topic Stick calibration
Awesome. Thanks for tracking that down. I think this will work for you to make a pull request.

1) Create an account on bitbucket.org and log in.
2) Navigate to the current source for _tx_configure.c
3) Click on the Edit button in the upper right.
4) Insert the new line. Don't want screen size dependencies in common so please use
GUI_DrawBackground(0, 0, LCD_WIDTH, LCD_HEIGHT);
5) In the bottom right click the Commit button.
6) A dialog will appear saying you don't have a commit bit and a fork and pull request will be created. Go ahead with that.

Then you can clone your fork to your local box to make future contributions easy! ;)
Last edit: 09 Mar 2016 01:39 by hexfet.

Please Log in or Create an account to join the conversation.

More
09 Mar 2016 03:03 #44302 by tcaudill01
Replied by tcaudill01 on topic Stick calibration
Thanks, "GUI_DrawBackground(0, 0, LCD_WIDTH, LCD_HEIGHT);" does work better.

Please Log in or Create an account to join the conversation.

More
09 Mar 2016 14:54 #44328 by mwm
Replied by mwm on topic Stick calibration
The bug tracker link in the left-hand menu uses your deviation forum account, though it sometimes requires a bit of prompting. But a pull request is the better option if you can do that!

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum