Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Auto Code NOT Running (as expected) (http://www.chiefdelphi.com/forums/showthread.php?t=104335)

kws4000 12-03-2012 17:02

Re: Auto Code NOT Running (as expected)
 
3 Attachment(s)
Alrighty, I sacrifice confidentiality for operation.

plnyyanks 12-03-2012 17:46

Re: Auto Code NOT Running (as expected)
 
Quote:

Originally Posted by Ether (Post 1143011)
The output of your feedback node in that snippet never changes.

Nor is it supposed to. If I recall correctly, the OP wanted something to do with total time elapsed since the start of auto mode (i.e. drive motor A for 7 seconds, then turn it off). The snippet will calculate the total time elapsed since the first iteration (not the time elapsed since the previous iteration, which is what I think you interpreted it to be). Make sense?

However, I probably could have phrased my explanation of the code better. Saying change in timer value probably implied change over one iteration, rather than over total execution. I intended the latter.

Mark McLeod 12-03-2012 17:51

Re: Auto Code NOT Running (as expected)
 
Quote:

Originally Posted by kws4000 (Post 1143000)
Also, sending kinect2 yaxis back to dashboard. Always sends "0", even when doing the floppy chicken!

So therefore, is it some error in setting up the Kinect, or can the robot not reliabley interpret the Kinect data?

By any chance do you have the Driver Station I/O Tab set to Enhanced Mode without the Cypress connected?

That's a unique case (bug) where the Kinect data will not get sent properly to the robot, but will be seen just fine on the Dashboard Kinect skeleton feedback.

Greg McKaskle 12-03-2012 17:52

Re: Auto Code NOT Running (as expected)
 
Left and right motors are never set in your auto loop. If you open it, leave the safety enabled, and don't update it, the RobotDrive will complain and set it to zero.

If you set the left right drive, I predict the error will go away. Other choice is to disable the safety. This is primarily there to make debugging safer and isn't required by the field. If debugging with it off, the robot should be on blocks since a breakpoint will leave drive motors running.

I couldn't tell if you had a Kinect issue or not. Please summarize the symptoms.

Greg Mckaskle

Ether 12-03-2012 17:53

Re: Auto Code NOT Running (as expected)
 
Quote:

Originally Posted by plnyyanks (Post 1143045)
If I recall correctly, the OP wanted something to do with total time elapsed since the start of auto mode (i.e. drive motor A for 7 seconds, then turn it off).

OK sorry I misunderstood the OP's intent.



kws4000 12-03-2012 18:32

Re: Auto Code NOT Running (as expected)
 
Quote:

Originally Posted by Mark McLeod (Post 1143048)
By any chance do you have the Driver Station I/O Tab set to Enhanced Mode without the Cypress connected?

That's a unique case (bug) where the Kinect data will not get sent properly to the robot, but will be seen just fine on the Dashboard Kinect skeleton feedback.

That may be it, Mark. We'll try it either tomarrow or Wednesday, we may be doing something with team Wavelength in Norton Shores.

Otherwise, code looks good? If it ain't, I'll never hear the end of it!


All times are GMT -5. The time now is 22:10.

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