×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Override Focuser Polling Period control

2 days 23 hours ago
ajt68
Fresh Boarder
Fresh Boarder
Posts: 13
Karma: 1
More
Topic Author
Override Focuser Polling Period control #43239
I have been trying to set the minimum value of the Serial Polling period to 1000ms, or just remove the control and hard code POLLMS to 1000ms.

It looks like I cant overwrite the control values as they are private.

I removed the addAuxControls call, and assumed this would remove the serial Poll Period control, but no!

I'm sure I am missing something simple? At the end of the day it does not need a variable Poll Period, so fixxing to 1000ms would be ideal.

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

2 days 13 hours ago
jpaana
Gold Boarder
Gold Boarder
Posts: 199
Karma: 5
More
Override Focuser Polling Period control #43257
In focuser case the addPollPeriodControl() seems to be called by the base Focuser::initProperties() call, you can set the driver specific default polling rate to 1000ms with setDefaultPollingPeriod(1000); and it's also saved with options so I don't see the need to take away the control in case someone wants to use it, to make the period longer for example.

Remote observatory running Ubuntu 19.04 x64 with ScopeDome 2M, Skywatcher EQ8 and HEQ5, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, USB_Focus V3, Gemini SnapCap, USB_DewPoint, KomaHub

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

2 days 13 hours ago
ajt68
Fresh Boarder
Fresh Boarder
Posts: 13
Karma: 1
More
Topic Author
Override Focuser Polling Period control #43259
It is not making the period longer that is the issue, it is being able to set it to less than 1000ms. The focuser in question does not like to be polled any quicker than 1000ms, so as I originally stated I either want to override the minimum value of the control, or hide it completely.

I have used the setDefaultPollingPeriod as you suggested, but the Polling period control is still there and overrides it.

So I have hard coded it to be POLLMS = 1000 in the TimerHit (override). My issue with this is that the GUI is now lying to the user, i.e. regardless of what they set it gets changed to 1000ms, which to me is jut wrong

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

2 days 13 hours ago
jpaana
Gold Boarder
Gold Boarder
Posts: 199
Karma: 5
More
Override Focuser Polling Period control #43262
Ah, it would then be useful to add something setMinimumPollingPeriod() and perhaps setMaximumPollingPeriod() to DefaultDevice that would set the range for that control, currently the limits are somewhat generous (10-600000ms) and most serial devices wouldn't like 10ms either.

Remote observatory running Ubuntu 19.04 x64 with ScopeDome 2M, Skywatcher EQ8 and HEQ5, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, USB_Focus V3, Gemini SnapCap, USB_DewPoint, KomaHub

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

1 day 1 hour ago
ajt68
Fresh Boarder
Fresh Boarder
Posts: 13
Karma: 1
More
Topic Author
Override Focuser Polling Period control #43339
I totally agree, min and max overrides would be the way to go.

How do we go about trying to get this implemented? Should it go in the general wish list, though I believe that is for end user features not developer options? Or will a core developer happen along at some point and spot this issue?

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

3 hours 41 minutes ago
jpaana
Gold Boarder
Gold Boarder
Posts: 199
Karma: 5
More
Override Focuser Polling Period control #43397
I made a pull request to add these methods as github.com/indilib/indi/pull/1013 and hopefully Jasem has time to review them at some point.

Remote observatory running Ubuntu 19.04 x64 with ScopeDome 2M, Skywatcher EQ8 and HEQ5, TS 8" RC, Atik 383L+, ASI178MC, ASI120MM-S, SX Lodestar X2, SX USB wheel with OAG, ZWO EAF, USB_Focus V3, Gemini SnapCap, USB_DewPoint, KomaHub
The following user(s) said Thank You ajt68

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

2 hours 28 minutes ago
ajt68
Fresh Boarder
Fresh Boarder
Posts: 13
Karma: 1
More
Topic Author
Override Focuser Polling Period control #43404
That's great, thanks.

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

Time to create page: 0.419 seconds