- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Calculate odometry information from the encoders
Calculate odometry information from the encoders
8 years 6 months ago #29530260
by nouf
Calculate odometry information from the encoders was created by nouf
Hello,
My project needs the odometry information to be calculated
Is there any microscript available to do that? I search a lot but I didn't find.
Or what commands should I use to get the information from the encoders?
Thanks in advance
My project needs the odometry information to be calculated
Is there any microscript available to do that? I search a lot but I didn't find.
Or what commands should I use to get the information from the encoders?
Thanks in advance
Please Log in or Create an account to join the conversation.
8 years 6 months ago #29530264
by TechSupport
Replied by TechSupport on topic Calculate odometry information from the encoders
You can do this by sending query's and print statements. See page 172 of user manual for runtime queries.
You query the encoder value using getvalue(_C, cc) 'where cc = encoder channel
You would then print back the value as needed.
If you are looking at speed, you would do the following.
dim speed as integer
top:
speed = getvalue(_S, 1) ' reads encoder speed 1
Print("Speed = ", speed, "\r")
wait(1)
Goto top
You query the encoder value using getvalue(_C, cc) 'where cc = encoder channel
You would then print back the value as needed.
If you are looking at speed, you would do the following.
dim speed as integer
top:
speed = getvalue(_S, 1) ' reads encoder speed 1
Print("Speed = ", speed, "\r")
wait(1)
Goto top
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Controller Configuration & Operation
- Calculate odometry information from the encoders
Time to create page: 0.051 seconds