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

RC11 N363 on Taranis Q X7 #4568

Closed
JR63 opened this issue Mar 6, 2017 · 10 comments
Closed

RC11 N363 on Taranis Q X7 #4568

JR63 opened this issue Mar 6, 2017 · 10 comments
Assignees
Milestone

Comments

@JR63
Copy link

JR63 commented Mar 6, 2017

Nice effort with the RC11 N323, I like it very much!

I found a minor issue:

I can set a Logical Switch with e.g. Cells 3.25V:

logicalswitch001

But in the Logical Switches overview it looks like this:

logicalswitch002

I think it should be:
Cels 3,25V

Tested with real Q X7 and Companion.

Bye
JR

@3djc 3djc self-assigned this Mar 6, 2017
@3djc 3djc added this to the OpenTX 2.2.0 milestone Mar 7, 2017
@3djc
Copy link
Contributor

3djc commented Mar 7, 2017

I need more details, as I cannot reproduce it:

  • is it coming for a earlier verison ?
  • how was it created ?
  • could you give us access to you otx ?

image

image

@JR63
Copy link
Author

JR63 commented Mar 7, 2017

Hi,

I think it's one line in the following method:

void menuModelLogicalSwitches(event_t event)
{
     ...

      else {
        uint8_t v1 = cs->v1;
        drawSource(CSW_2ND_COLUMN, y, v1, 0);
        if (v1 >= MIXSRC_FIRST_TELEM) {
          drawSourceCustomValue(CSW_3RD_COLUMN, y, v1, convertLswTelemValue(cs), LEFT);
        }
        else {
          if (v1 <= MIXSRC_LAST_CH) {
            drawSourceCustomValue(CSW_3RD_COLUMN, y, v1, calc100toRESX(cs->v2), LEFT);
          }
          else {
            drawSourceCustomValue(CSW_3RD_COLUMN, y, v1, cs->v2, LEFT);
          }
        }
      }

     ...
}

The line:
uint8_t v1 = cs->v1;

shall be:
int v1 = cs->v1;

It's the same problem as the fix of #4416

v1_val = (uint8_t)cs->v1;
->
v1_val = cs->v1;

Bye
JR

@JR63
Copy link
Author

JR63 commented Mar 7, 2017

No problem, here is my ziped otx:

document1.zip

@3djc
Copy link
Contributor

3djc commented Mar 7, 2017

Thx, I have succeeded reproducing it, will make my fix much easier to check :)

@JR63
Copy link
Author

JR63 commented Mar 7, 2017

cool

@3djc 3djc mentioned this issue Mar 7, 2017
@3djc
Copy link
Contributor

3djc commented Mar 7, 2017

Your fix would work, but we have type defined for this scenario :)

@JR63
Copy link
Author

JR63 commented Mar 7, 2017

ok, source_t is also a good choice ;-)

#if defined(PCBTARANIS) || defined(PCBHORUS)
typedef uint16_t source_t;
#else
typedef uint8_t source_t;
#endif

perfect, thanks.

@tonythetiger95
Copy link

How can I get this fixed exactly. Pretty new to the whole opentx platform and so far I'm having a good experience with the sound editing and so on but not really sure how to fix this issue thanks.

@3djc
Copy link
Contributor

3djc commented Mar 11, 2017

When RC12 gets released, it will have the fix

@tonythetiger95
Copy link

Thank you. I'll be sure to check back in when that gets put out. Good day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants