Quote:
Originally Posted by PhilBot
With these two VIs called once per teleop cycle, my motors go back to stuttering once a second.
How is it possible for these two simple calls to cause this problem? I've attached my simplified test code. Only chanages are to Begin and Teleop.
|
Let me preface this by saying, I don't know the LV WPILib at all. However, C++ the compressor class spawns a new thread to periodically check the pressure swicth. People have complained about this
thread's CPU usage in the past. From that thread, it seems like changing the state of the compressor (with your DS switch) is adding burden to the task. Perhaps you should just use a relay VI and a digital input VI (pressure switch) to replace your compressor VI. Just poll the pressure switch in your Teleop/Auto main loops
Also, you should fix your "CAM" typos to "CAN" in the Title and post. People may mistakenly think that you are driving a CAM linkage with a motor on a Jag