![]() |
Re: Window Motor problem
Do you have errors showing up in the diagnostics windows that help?
What value is the limit switch if you probe the wire? If you probe the value going into the motor? This will help identify whether it is a SW or HW/Electrical issue. Also, if you put the robot into Test mode, you can scroll to find the Pullback motor. You can see the value that periodic updated with. You can also set the value yourself if you want to run the motor a bit. Keep in mind that unless your code reads the robot mode, periodic loops tend to operate even in test mode, so the interactive motor set features may be overwritten by periodic. Greg McKaskle |
Re: Window Motor problem
Quote:
* ask for more detail if you want to pursue this |
Re: Window Motor problem
The Periodic Task code must be placed inside an infinite loop (with a suitable delay timer).
What you show will be executed only once in the first few milliseconds that your code is executing, and will never be checked again. |
Re: Window Motor problem
A bit off-topic, but... It appears from your code that you are calling the Window motors "Pullback" motors. Are you using Windows motors to pull back your catapult arm? |
Re: Window Motor problem
Quote:
@Mark Okay, that sounds about right. I'll place it in a loop and see what happens. Give me about 20 minutes. Thanks! |
Re: Window Motor problem
Quote:
|
Re: Window Motor problem
Quote:
I can imagine a mechanism that resets a catapult not needing to operate faster than, say, 10 seconds. In such a (hypothetical) case, two such motors sound sufficient. Not ideal or recommended, but sufficient. |
Re: Window Motor problem
It runs fast enough. Don't worry about that :P. It's supposed to automagically roll the arm once teleop is enabled. And I got it to work by putting it in a while loop.
After doing that though, the pressure switch isn't sending signal to the DSCar to turn on the compressor. It worked before I implemented the window motors but now it doesn't work. Labview says that I don't have to run the control loop in a while loop as well because that's just redundant, but could that be the case? |
Re: Window Motor problem
If you open the compressor control subVI, by double clicking, you will see that it already contains a loop that runs as long as there is a compressor opened that needs to be controlled.
Please check that the compressor is opened in Begin and registered by name. This will also allow you to use Test mode to see the value of the compressor pressure switch and spike. This will help verify what channels the code is using and what it is commanding. If the SW is doing the right things and the robot is enabled, you may want to check the electrical side of things. Greg McKaskle |
| All times are GMT -5. The time now is 09:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi