- Posts: 5712
- Thank you received: 0
General HAL Output
5 years 9 months ago #193788
by phillc54
General HAL Output was created by phillc54
I am having trouble trying to get a hal output to accept a float value:
has no effect. It will change if I use an int.
I have tried initial state checked and unchecked - I have no idea what that means.
Code:
widget.hal_pin.set(0.1)
I have tried initial state checked and unchecked - I have no idea what that means.
Please Log in to join the conversation.
5 years 9 months ago #193794
by cmorley
Replied by cmorley on topic General HAL Output
pushed the fix for scaling and fix the initial value option.
use:
widget.pin_value_update(value)
for s32/float values
which is a little awkward - I didn't intend it for direct manipulation but for using signals/slots set in designer from widgets that haven't been 'hali-fied'
Can you tell me what you are doing so I can improve the widget or advise a different solution?
use:
widget.pin_value_update(value)
for s32/float values
which is a little awkward - I didn't intend it for direct manipulation but for using signals/slots set in designer from widgets that haven't been 'hali-fied'
Can you tell me what you are doing so I can improve the widget or advise a different solution?
Please Log in to join the conversation.
5 years 9 months ago #193795
by phillc54
Replied by phillc54 on topic General HAL Output
As usual I am doing something differently...
I have an override (that uses 0.1 increments/decrements) that I want to flash the text on if the override value is not 0. I originally had a label but need a hal pin for the value. I changed to a doublespinbox but it was difficult to get the flash working so then I thought a haloutput would work, which does everything else fine except for setting the float value.
I have an override (that uses 0.1 increments/decrements) that I want to flash the text on if the override value is not 0. I originally had a label but need a hal pin for the value. I changed to a doublespinbox but it was difficult to get the flash working so then I thought a haloutput would work, which does everything else fine except for setting the float value.
Please Log in to join the conversation.
5 years 9 months ago #193797
by cmorley
Replied by cmorley on topic General HAL Output
It should work fine for you now - but why don't you just make a HAL pin in the handler for this?
Please Log in to join the conversation.
5 years 9 months ago #193798
by phillc54
I have no excuse other than I didn't think of doing that. :blush:
Replied by phillc54 on topic General HAL Output
cmorley wrote: It should work fine for you now - but why don't you just make a HAL pin in the handler for this?
I have no excuse other than I didn't think of doing that. :blush:
Please Log in to join the conversation.
5 years 9 months ago #193799
by cmorley
Replied by cmorley on topic General HAL Output
lol
Isn't it annoying when someone does that to you!
But hey it got the widget fixed - thank you.
Isn't it annoying when someone does that to you!
But hey it got the widget fixed - thank you.
Please Log in to join the conversation.
5 years 9 months ago #193800
by phillc54
Replied by phillc54 on topic General HAL Output
Haha, yes, I often overthink things and end up lost...cmorley wrote: Isn't it annoying when someone does that to you!
Please Log in to join the conversation.
Time to create page: 0.095 seconds
