Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Adding non drive motors in Advanced Framwork (http://www.chiefdelphi.com/forums/showthread.php?t=73290)

ffej 30-01-2009 23:33

Adding non drive motors in Advanced Framwork
 
I'm a fairly experienced programmer but i'm having trouble creating areference for a non drive
motor in Adv. Frmwork. Labview, If it helps we'll be
using joysticks to turn it on and off, and forward and back.

Any help would be greatly appreciated.

Burmeister #279 30-01-2009 23:38

Re: Adding non drive motors in Advanced Framwork
 
if you only want to use said motors in teleop you can initiate/run/close them the same as the joystick thats in the advanced framework. I think you can also open it in auton mode as long as you close it there as well.

ffej 30-01-2009 23:45

Re: Adding non drive motors in Advanced Framwork
 
i tried that but it didn't work, i'm not with the program right now or i would show you how i did it

Burmeister #279 30-01-2009 23:49

Re: Adding non drive motors in Advanced Framwork
 
where exactly are the motors being used? autonomous, teleoperated or both?

ffej 30-01-2009 23:51

Re: Adding non drive motors in Advanced Framwork
 
they will be used in both

Burmeister #279 31-01-2009 00:02

Re: Adding non drive motors in Advanced Framwork
 
1 Attachment(s)
mmm... hmm...

have you tried opening and running the motor in just the teleop or in just the autonomous iterative? both have initiation cases that should work. i don't have a robot here but i have labview so i can check code but not movement =/
take a look at the picture below. could you put the motor control in there?

ffej 31-01-2009 00:06

Re: Adding non drive motors in Advanced Framwork
 
Ok, so i should open the motors in the init. part of the loop, set speed, the middle state, then close in stop.

how do i wire them together?

Burmeister #279 31-01-2009 00:27

Re: Adding non drive motors in Advanced Framwork
 
1 Attachment(s)
picture =) it'll work the same with teleop.

the feedback node will appear automatically when you connect the wire from right to left

ffej 31-01-2009 00:33

Re: Adding non drive motors in Advanced Framwork
 
Thanks!

i'll try this tomorrow and post the results

(i think i was making it to be to complicated)

rwood359 31-01-2009 05:26

Re: Adding non drive motors in Advanced Framwork
 
Have you looked at Tip Jar #9 and 10.
http://www.lvmastery.com/tipjar
They show adding servos and gyros to the typedef and propagating them basically to all modes of operation. The motors are probably the same difference. I need to do the same thing this weekend and am going to try to use Ben's example.

ffej 31-01-2009 11:10

Re: Adding non drive motors in Advanced Framwork
 
it doesn't seem to work right, the motor pulses as it is bieing turned on and off

ffej 01-02-2009 20:12

Re: Adding non drive motors in Advanced Framwork
 
For some reason in the code the victor is being opened, set a speed, and then closes in like half a second, any ideas why


All times are GMT -5. The time now is 08:23.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi