- Posts: 224
- Thank you received: 0
conv_float_s32 error
2 years 2 months ago #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
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
Attachment not found
Please Log in to join the conversation.
2 years 2 months ago #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:
This is due to the underscore becoming hyphen-minus in components. This works:
Code:
conv_float_s32 count=1
addf conv-float-s32.0 servo-thread
Please Log in to join the conversation.
Time to create page: 0.219 seconds
