Log in

View Full Version : is the set angle, get angle, or set position the same as set output for motor vi's


Ian McShane
12-02-2011, 11:30
if not, which one is?

Greg McKaskle
12-02-2011, 11:50
Looking at the diagram, Set Position on a servo ranges between 0 and 1, similar to Set Output for a motor. Set Angle is a wrapper around Set Position that maps the angle between 0 and 1 and calls Set Position. You can use either of them to update a servo to the location you want it.

Greg McKaskle

Vikesrock
12-02-2011, 11:51
None of the above. A motor (for the purposes of this competition) is controlled by setting its speed. A servo is controlled by setting it's angle. It will then move to this angle and hold that position as best it can until you issue a new command.

Mtg Ruler
12-02-2011, 11:51
Each VI is different if you open it and look inside

Set Angle sets an angle for the servo in degrees. probably a range of [0,360), but depends on the servo

Get Angle returns the angle that the servo is currently at. probably range of [0,360)

Set Position sets the servo to a percentage of its maximum rotation [0.0,1.0]

These are only for servos, and will likely mess up with motors

Ian McShane
12-02-2011, 12:05
Excellent that was what i needed to know, thanks