- Posts: 5713
- Thank you received: 2100
setup qtplasmac
5 years 3 months ago #215120
by phillc54
Replied by phillc54 on topic setup qtplasmac
Great work. If you want to submit a PR to include the work I would be happy to merge it.
If you want to do a PR you would just need to make some minor changes to keep the code consistent with the existing. Also it would be better to rework the exising height_ovr_pressed function so both the GUI buttons and the external Hal pins use the same function rather than having two functions doing the same job.
If you want to do a PR you would just need to make some minor changes to keep the code consistent with the existing. Also it would be better to rework the exising height_ovr_pressed function so both the GUI buttons and the external Hal pins use the same function rather than having two functions doing the same job.
Please Log in or Create an account to join the conversation.
5 years 3 months ago #215295
by fupeama
Replied by fupeama on topic setup qtplasmac
Hi,
Ok, I tried to make PR. I did it for the first time, so maybe it works.
Martin
Ok, I tried to make PR. I did it for the first time, so maybe it works.
Martin
Great work. If you want to submit a PR to include the work I would be happy to merge it.
If you want to do a PR you would just need to make some minor changes to keep the code consistent with the existing. Also it would be better to rework the exising height_ovr_pressed function so both the GUI buttons and the external Hal pins use the same function rather than having two functions doing the same job.
Please Log in or Create an account to join the conversation.
5 years 3 months ago #215297
by phillc54
It would have been nice if you had renamed the pins so they were similar to the existing external pins, something like:
Do you want to add them to the doc or do you want me to.
Replied by phillc54 on topic setup qtplasmac
I saw the PR, it looks good, I will test and merge tomorrow.Hi,
Ok, I tried to make PR. I did it for the first time, so maybe it works.
Martin
It would have been nice if you had renamed the pins so they were similar to the existing external pins, something like:
Code:
self.extHeightOvrMinusPin
Do you want to add them to the doc or do you want me to.
Please Log in or Create an account to join the conversation.
5 years 3 months ago #215307
by fupeama
Replied by fupeama on topic setup qtplasmac
OK I will rename pin.
something like this?
self.extHeightOvrPlusPin = self.h.newpin('ext_height_ovr_plus', hal.HAL_BIT, hal.HAL_IN)I would prefer you to add the information to the documentation because English is not my native language.
Martin
something like this?
self.extHeightOvrPlusPin = self.h.newpin('ext_height_ovr_plus', hal.HAL_BIT, hal.HAL_IN)I would prefer you to add the information to the documentation because English is not my native language.
Martin
The following user(s) said Thank You: Clive S
Please Log in or Create an account to join the conversation.
5 years 3 months ago #215309
by phillc54
Replied by phillc54 on topic setup qtplasmac
Great, thanks for doing this. I'll do the docs tomorrow as well.
The following user(s) said Thank You: Clive S
Please Log in or Create an account to join the conversation.
5 years 3 months ago #215497
by fupeama
Replied by fupeama on topic setup qtplasmac
Thanks for adding code to repo.
If you want, I can try write code for encoder height override too.
Martin
If you want, I can try write code for encoder height override too.
Martin
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.267 seconds