float tu U32 problem

More
18 Jul 2021 13:38 #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 or Create an account to join the conversation.

More
18 Jul 2021 14:00 #215226 by roland
Replied by roland on topic float tu U32 problem
is it in the servo-thread?
addf  conv-float-u32.0 servo-thread
The following user(s) said Thank You: anfänger

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

More
18 Jul 2021 15:24 #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 or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum