|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Auto Code NOT Running (as expected)
Lana?
Yeah that is EXACTLY what we were looking at.Shucks, that'll take more thinking...thinking always gets me in trouble.... So just put everything in one giant loop w/ a FALSE wired to the Terminator? On second thought, that may be a bad idea... I have bad memories of that angry little doggie... |
|
#2
|
|||
|
|||
|
Re: Auto Code NOT Running (as expected)
Heh, that should have said Alan.
Yes, a big while loop with false on the terminator should work just fine. Make sure to put a Wait Ms VI in there, 20 to 50ms should work well. |
|
#3
|
||||
|
||||
|
Re: Auto Code NOT Running (as expected)
Okay, but any infinite loops are on your tab next week, I've already footed the bill my team gives the programmers long enough!
|
|
#4
|
|||
|
|||
|
Re: Auto Code NOT Running (as expected)
As long as you have not modified Robot Main, the Autonomous Independent VI will be automatically terminated when the robot changes modes, regardless of whether it is currently "caught" in a loop or not.
|
|
#5
|
||||
|
||||
|
Re: Auto Code NOT Running (as expected)
Would passing Ultrasonic and Joystick data to the Dashboard inside Robot Main qualify as "modification"?
|
|
#6
|
|||
|
|||
|
Re: Auto Code NOT Running (as expected)
Nope, that should be fine.
|
|
#7
|
||||
|
||||
|
Annnddddddddd, (drum roll please)
It doesn't work. Error #-44061 at Leftand Right Motors, standard loop starvation code. The joystick z-throttle selector works. We have a loop around all Auto Code, with a Wait in there of 20, and tried again w/ 50. Loop starvation every time! 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? |
|
#8
|
|||
|
|||
|
Re: Auto Code NOT Running (as expected)
If you run the default dashboard, does the Kinect "green man" and Y-axis data show up?
|
|
#9
|
||||
|
||||
|
Re: Auto Code NOT Running (as expected)
Quote:
I think if the dashboard can finally get the proper data, then the robot auto code will work fine. |
|
#10
|
|||||
|
|||||
|
Re: Auto Code NOT Running (as expected)
Quote:
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. |
|
#11
|
||||
|
||||
|
Re: Auto Code NOT Running (as expected)
Quote:
Otherwise, code looks good? If it ain't, I'll never hear the end of it! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|