|
Re: programmed DC motor in degree..
There is and there isn't. What sensor(s) do you have on the motor you want to move through a certain number of degrees? (And, what is that motor?)
If you don't have any sensors on the motor, you might be able to use time to stop the motor at a given point. However, that can be inaccurate; the window motors are about the only ones I'd trust to do that, and even then only with a hard stop of some kind.
With a sensor, it's a lot easier: run the motor through the angle, read the sensor, and make sure that you can get the same value for the same angle. Then increment/decrement the value to get to where you really need to be. (Note: I'm a mechanical with no knowledge of Labview, so I can't help with the actual programming.)
If you have a servo, then it's even easier, but that isn't the question that was asked.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons
"Rockets are tricky..."--Elon Musk

|