- Posts: 648
- Thank you received: 0
float tu U32 problem
5 years 3 months ago #215225
by anfänger
float tu U32 problem was created 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
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.
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.
Time to create page: 0.072 seconds
