float tu U32 problem

More
5 years 3 months ago #215225 by anfänger
I want want to use the motion analog out to control the gear set.
this way I can use ngc code change gears. (I used Bash scripts before but I can't launch those for some reason as a starting c code and the geachelte module needs a u32 and an input for the gearnumber)
I use the conv_float_u32 module like this:

loadrt conv_float_u32 count=1
net gearnumberin conv-float-u32.0.in <= motion.analog-out-00 
net gearnumberout <= conv-float-u32.0.out

but when is doesn't mater what float between 1 and 24 I use the u32 is always 0.

what am I doing wrong?

thanks Patrick
 

Please Log in to join the conversation.

More
5 years 3 months ago #215226 by roland
Replied by roland on topic float tu U32 problem
is it in the servo-thread?
Code:
addf  conv-float-u32.0 servo-thread

Please Log in to join the conversation.

More
5 years 3 months ago #215229 by anfänger
Replied by anfänger on topic float tu U32 problem
Thanks that rookie mistake troubled me half a day.

Please Log in to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum