Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   So i have another problem >.< (http://www.chiefdelphi.com/forums/showthread.php?t=80523)

JohnFogarty 21-01-2010 10:53

Re: So i have another problem >.<
 
I put that into my code last night, i'm going to try it today. It seemed the 2nd joystick was not in the Begin.vi that might have been the problem. and i set the open jaguar reference in the begin.vi as well.

Matt95 21-01-2010 11:00

Re: So i have another problem >.<
 
Quote:

Originally Posted by Tanner (Post 903741)
From my experience, Joe's answer explains the problem. Otherwise, I don't see anything else that is wrong.



You could open all your motors/joysticks in Teleop.vi, but it gets complicated in just setting that up.

-Tanner

While Im not exactly sure about your problem, but i recommend removing all connection with the right control and seeing if the left motor works (by doing what it originally was suspost to do.) if the left control still isn't working, then the left control probably has a malfunction of some sort. In that case, you should get a new left control.

JohnFogarty 21-01-2010 21:44

Re: So i have another problem >.<
 
ok so i've definatly got a problem, i took the right motor out of the code and set it to the y axis of joystick 1. AND it's doing the same thing and it's running both motors, i tried Joe's idea NOTHING IS WORKING. O.o ....:confused:

TheOtherGuy 21-01-2010 22:06

Re: So i have another problem >.<
 
Could you explain in detail how you are deploying the program?

bladetech932 21-01-2010 22:28

Re: So i have another problem >.<
 
I would try separating out those constants on the axis it shouldn't change anything i know but thats what caused ours to do that.

jhersh 21-01-2010 22:37

Re: So i have another problem >.<
 
Have you looked at the Diagnostics tab of the driver station? There is a window that will show all your errors there. Please tell us what errors you see. It's best to clear the error list, then run it, so you can get a clear picture of what errors happen in a single run.

JohnFogarty 22-01-2010 10:42

Re: So i have another problem >.<
 
I had so many errors it wasn't funny when i replaced Arcade Drive with tank drive. I tried Arcade and it still screwed up but the errors were gone. What i do is start a new Robot Project I build it and set it as the startup. I edited the tele-op File to use jostick, watchdog and Open motor references from the begin.vi, I changed the Arcade drive to Tank Drive and i set the 2 get axis's to Axis 2 and axis 5 because i'm using the Daul Action Gamepad. then i took axis 5 off and so nothing was to supposed to run the right motor. When i ran the program to see if the left motor worked on the left stick. Both motors ran they were not supposed to, when i took axis 2 off and tried axis 5 right y axis stick nothing happened. To run my code i save my teleop changes and Deploy it from the boot time thing at the bottom by right clicking and selecting deploy (I DO GET A MESSAGE BOX SAYING THAT CERTAIN VI's are real time vi's and that if i choose to continue all vi's on the device will close the vi's it lists are mostly camera realted though it sometimes shows the main vi as well). then i reboot and open the drivers station.

hschase 22-01-2010 11:05

Re: So i have another problem >.<
 
There should be usable tank drive code in the WPI Labview Library! Check it out, my programmers, who could write code with their hands tied behind their backs plan on using the library because they are pieces that they know work for the intended purpose.

TheOtherGuy 22-01-2010 11:21

Re: So i have another problem >.<
 
Quote:

Originally Posted by John_1102 (Post 904579)
I had so many errors it wasn't funny when i replaced Arcade Drive with tank drive. I tried Arcade and it still screwed up but the errors were gone. What i do is start a new Robot Project I build it and set it as the startup. I edited the tele-op File to use jostick, watchdog and Open motor references from the begin.vi, I changed the Arcade drive to Tank Drive and i set the 2 get axis's to Axis 2 and axis 5 because i'm using the Daul Action Gamepad. then i took axis 5 off and so nothing was to supposed to run the right motor. When i ran the program to see if the left motor worked on the left stick. Both motors ran they were not supposed to, when i took axis 2 off and tried axis 5 right y axis stick nothing happened. To run my code i save my teleop changes and Deploy it from the boot time thing at the bottom by right clicking and selecting deploy (I DO GET A MESSAGE BOX SAYING THAT CERTAIN VI's are real time vi's and that if i choose to continue all vi's on the device will close the vi's it lists are mostly camera realted though it sometimes shows the main vi as well). then i reboot and open the drivers station.

So you select deploy rather than 'Run as Startup' and then reboot the cRio once it's finished downloading? When you deploy, it just loads and runs your program on the cRio while the LabVIEW program is running, and if you turn off the cRio it will lose that code. The last program set as startup will then load when you reboot. Seems like you're loading the same arcade drive program each time you turn it off and back on. Right click on Build Dependencies in the project tree and select Build, then Run as Startup once that's done. Then you should be able to reboot without losing the program.

JohnFogarty 24-01-2010 17:56

Re: So i have another problem >.<
 
I'm going to feel slightly stupid if that is the problem XD thanks.


All times are GMT -5. The time now is 21:25.

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