-
Couldn't load subscription status.
- Fork 410
Power refactor #2287
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
Power refactor #2287
Conversation
|
@hcomet @chrysikos @chemistorge @iTerrans Please check |
|
I quickly looked at the CheapoDC and MyDCP4ESP32 drivers. Generally the basics seem fine but both will need some work. The new Dew and Power tabs do not seem to work properly but the Main Control tab is mostly working. Comments without fully understanding the new Power template and tabs. MyDCP4ESP32
CheapoDC
|
|
Thank you, so for MyDCPCESP32, the number of available dew channels is only know after I'm going to need more help to configure this using INDI::Power. Right now, it's a simple Power/Dew/Variable channels division and control for each. |
|
For MyDCP4ESP32, the number of available channels which support automated dew control is determined by I can look at the changes required for MyDCPESP32 and CheapoDC to move to using INDI:Power. Should I fork from knro/indi:power_refactor? Is there anything that indicates the intent of how the new Tabs should work? ie: Auto Dew Control enables/disables auto for a channel. In CheapoDC this would move the channel from auto to manual. In MyDHCP4ESP32 only Channel 3 has manual so it would disable the other channels if unchecked? Should it also zeror the output of a channel when set to manual? It seems that the Channels line may also enable/disable a channel? The Duty Cycles section should show current channel output whether auto or manual? If auto, then changes to output should be rejected? Both the controllers will reject commands that do not fit the current settings for channels so the next One more question, I see that you added all the controller settings to |
|
I add INDI::Power interface documentation that might help clarify some of these points. You can download the PR (just add a .diff at the end and use wget to download then patch) or alternatively, fork my fork. You'll have three tabs: Power (12v), Dew (all dew properties including Autodew) and Variable (for variable output). |
|
I submitted a PR against your fork for MyDCP4ESP32. I'll start on CheapoDC now. CheapoDC has one automated channel that may drive 2 to 6 outputs. The first 2 are always dew outputs but the last 4 are configurable and my be tied to the 1 automated channel or be independent manual PWM Dew channels or each be independent 12V power outputs. This is determined at runtime by querying the device configuration. Can the call to Also, is there a recommended way to change the labels for the channels in the driver code. For instance, a device may have outputs 0 & 1 as Auto Dew, outputs 2 & 3 as Manual Dew and outputs 4 & 5 as 12V power. I'd like to be able to change the labels. In particular having the 12V power show as Channel 1 & 2 when they are Outputs 4 & 5 will be confusing. |
|
You can call PI::initProperties in All the labels are configurable and after the call to PI::initProperties, you could (optionally) set your own default labels if you want to: For example. However, the user can change the label for Power, Dew, and Variable channels to reflect what is actually connected. |
…flag. Add option to override the default 60 seconds maximum polling for non-udev systems.
|
@hcomet Please submit a PR now to master directly. |
Migrate all drivers using power or dew controller under the unified INDI::Power interface. This is a major refactor and all migrated drivers need to be tested.