conv_float_s32 error

More
20 Aug 2024 15:18 #308219 by slowpoke
conv_float_s32 error was created by slowpoke
I'm trying to link a scale output (float) to halui.feed-override.counts so I can control feed-override with an external pot. I'm using "scale" to scale the analog value.

It appears that halui.feed-override.counts needs to be a s32 type value, so I'm trying to use  conv_float_s32 to convert the scale output to s32. The addf conv_float_s32.0 servo-thread line is causing the following error:
HAL: ERROR: function 'conv_float_s32.0' not found.

If there is a better way to accomplish what I'm trying to do "I'm all ears"

excerpt from my postgui as follows:
# Feed Speed
addf scale.1 servo-thread
setp scale.1.offset 0.0
setp scale.1.gain 0.12
net feed-pot-in scale.1.in <= arduino.ain.1

loadrt conv_float_s32 count=1
addf conv_float_s32.0 servo-thread

#net feed-override halui.feed-override.counts <= scale.1.out  # type mismatch
 
Attachments:

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

More
20 Aug 2024 16:04 - 20 Aug 2024 16:22 #308224 by Aciera
Replied by Aciera on topic conv_float_s32 error
[Edit]
This is due to the underscore becoming hyphen-minus in components. This works:
conv_float_s32 count=1
addf conv-float-s32.0 servo-thread
Last edit: 20 Aug 2024 16:22 by Aciera.
The following user(s) said Thank You: slowpoke

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

Time to create page: 0.061 seconds
Powered by Kunena Forum