Welcome, Guest
Username: Password: Remember me
20 Aug 2017
INDI development team is happy to announce the release of INDI Library v1.5.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Programming radio-Buttons, strange behaviour

Programming radio-Buttons, strange behaviour 1 year 4 months ago #9489

  • djibb
  • djibb's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 47
  • Thank you received: 2
Hi : )

I'm ending alpyspectrograph driver (to work with this : www.shelyak.com/produit.php?id_produit=92&id_rubrique=17 )

And ther's something I d'ont understand :
What I want : That only ONE radio button could be on.

What I'm using in code : IUFillSwitchVector(&LampSP, LampS, 3, getDeviceName(), "CALIB_LAMPS", "Calibration lamps", CALIBRATION_UNIT_TAB, IP_RW, ISR_ATMOST1, 0, IPS_IDLE);

But ISR_ATMOST1 dosen't work... I can choose another and the first clicked is always on... What do I miss ?

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

Programming radio-Buttons, strange behaviour 1 year 4 months ago #9498

Maybe try ISR_1OFMANY...and you may need to update the state of the switch with IUUpdateSwitch
The following user(s) said Thank You: knro

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

Last Edit: by jonkjon.

Programming radio-Buttons, strange behaviour 1 year 4 months ago #9511

As Jon said! Do you have the code for your driver hosted somewhere so we can take a look at it?

EDIT: Is it this one? github.com/indilib/indi/tree/master/3rdparty/indi-shelyak

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

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Last Edit: by knro.

Programming radio-Buttons, strange behaviour 1 year 3 months ago #9699

  • djibb
  • djibb's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 47
  • Thank you received: 2

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

  • Page:
  • 1
Time to create page: 0.122 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica