Jump to content

Recommended Posts

Posted

I am trying to figure out what I did wrong with my CMSP next button. I cut and paste the command from DCS-BIOS:

 

DcsBios::Switch3Pos cmspUpdn("CMSP_UPDN", PIN_A, PIN_B);

 

My pins are 12 and 11 so I change it it this:

 

DcsBios::Switch3Pos cmspUpdn("CMSP_UPDN", 12_A, 11_B);

 

When I do it will not compile. If I remove the _A and _B then it works but both buttons only count up. Thanks for the noob help guys. I really appreciate it and I hope this clicks for me soon lol.

Posted (edited)

Not at home at the moment so can't format this post perfectly.

 

From memory

 

 

 

Change this

 

cmspUpdn("CMSP_UPDN", 12_A, 11_B);

 

 

 

 

To this

 

cmspUpdn("CMSP_UPDN", 12, 11);

 

 

Sent from my SM-G950F using Tapatalk

 

 

 

Edit- just read the last paragraph of your post. Yes the _A and _B have to be removed.

 

From memory I had problems with the up and down as well. It wasn't a dcs bios problem- I had to change something the the LUA in the game. I'll have a look for you when I get home.

 

 

Oh and just to completely check hardware first, try compiling it with a different pin and see if that works. I've also had issues with some of the cheapest Chinese arduino clones shorting out if I use pins right next to each other and things like that happening. Strange but I never bothered looking for a solution- I just used pins on opposite side of the pcb.

Edited by romeokilo
  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...