|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Custom Driver Station on the Field
Quote:
|
|
#2
|
|||||
|
|||||
|
Re: Custom Driver Station on the Field
Quote:
|
|
#3
|
|||
|
|||
|
Re: Custom Driver Station on the Field
Another thing to try is to close and reopen the driver station and dashboard prior to connecting to the field.
|
|
#4
|
|||
|
|||
|
Re: Custom Driver Station on the Field
Quote:
We set our autonomous mode before the match starts, and it is stored in a global variable (not necessary but we have dashboard code and robot code separated in different loops in different areas, its a custom structure) on the robot, and that does the trick, as long as there is a connection to the dashboard established. This seems to be a bug with the dashboard code, and if other people are having this issue, then I would assume its a problem with the code provided in the WPIlib or the TCP just doesn't work well in certain scenarios for some reason, and I haven't found a fix yet. Its a pretty weird problem. Last edited by MikeF1617 : 03-03-2015 at 10:53. Reason: clarification |
|
#5
|
||||
|
||||
|
Re: Custom Driver Station on the Field
Check your data types in automatous mode. The data coming from your numeric read does not match the date type that you loop is looking for causing the loop to default to zero every time you run the program.
http://puu.sh/ggnQW/e4c23b7496.png Last edited by TylerStaudigel : 03-03-2015 at 11:13. Reason: added link |
|
#6
|
|||||
|
|||||
|
Re: Custom Driver Station on the Field
Yea, your data type in Autonomous is a floating point number not the integer type of the Case. The floating point number doesn't equal any of the integer cases, so it is taking the default.
The problem exists on both the Dashboard side and the robot side. You need to write/read an integer on both sides and you need to make sure the enum order matches the numbers you expect. Last edited by Mark McLeod : 03-03-2015 at 11:24. |
|
#7
|
|||
|
|||
|
Re: Custom Driver Station on the Field
Quote:
However, LabVIEW should be (and I assume is) automatically casting the double into an integer, as shown by the red dot in this screenshot that you are referencing: http://puu.sh/ggnQW/e4c23b7496.png So technically, that part should be working fine, but it is better to cast it yourself, just as good practice. There is probably some communication issue occurring here, however, so try to recreate the problem in practice with a similar setup to how you run your robot at competition, specifically the boot order and time of connection. |
|
#8
|
||||||
|
||||||
|
Re: Custom Driver Station on the Field
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|