View Full Version : Autonomous Motor Control
15cscheurer
11-02-2015, 17:39
Hi, I am using autonomous and I know how to code the movement commands, but I was wondering about how to program 2 other motors that control the lift mechanism that we have on our robot. Please help
18289
btcshields6
12-02-2015, 18:43
Do you know how to program the motors that lift the mechanism in teleop? Have you written for a non drive motor before?
Here's an example:
http://team358.org/files/programming/ControlSystem2009-/LabVIEW/SingleMotorExample.jpg
15cscheurer
14-02-2015, 18:40
Thanks for the reply, here is what our teleop looks like, I am one of the 2 programmers on our team this year and we are brand new to labview after switching from Java last year. sorry for the poor photo quality but hopefully you can still see it. 18353
Greg McKaskle
15-02-2015, 09:14
Your "Lift Motors" refnum can be read in auto and motor updates sequenced with your drive base code using a sequence structure or data flow.
By default, safety is not enabled on motors other than the drive base. So you do not need to use a special Delay and Update Safety function. A simple timer delay will do fine.
Is this enough info? It is really similar to the sample code that was there already.
Greg McKaskle
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.