|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
FMS discovery not working?
In Seattle and Calgary, the "DriverStation.getInstance().isFMSAttached()" method was not properly detecting FMS.
Documentation in wpilibj Code:
/**
* Is the driver station attached to a Field Management System?
* Note: This does not work with the Blue DS.
* @return True if the robot is competing on a field being controlled by a Field Management System
*/
|
|
#2
|
|||||
|
|||||
|
Re: FMS discovery not working?
By "blue DS" I believe they are referring to the 2009-style "little blue box" driver station, not the alliance color.
|
|
#3
|
||||
|
||||
|
Re: FMS discovery not working?
So then it should have worked regardless of our alliance?
|
|
#4
|
||||||
|
||||||
|
Re: FMS discovery not working?
We had some code that ran when isFMSAttached returned true this year that didn't work at the Los Angeles Regional. We never had a chance to determine if it was the isFMSAttached or something inside, and ended up ripping it out.
I hope to play with it with FMS Lite during the offseason. |
|
#5
|
||||||
|
||||||
|
Re: FMS discovery not working?
|
|
#6
|
||||
|
||||
|
Re: FMS discovery not working?
We did the exact same thing. I have a feeling it is something about the FMS.
|
|
#7
|
||||
|
||||
|
Re: FMS discovery not working?
We had a problem with the FMS where our joystick controls (we tried this with logitec joysticks and an xBox controller) were both reversed and backwards when connected and fine when not. What exactly do you need isFMSAttached used for?
|
|
#8
|
||||
|
||||
|
Re: FMS discovery not working?
To adjust what data to send on the smartdashboard for competition. Don't want to get any lag.
|
|
#9
|
||||||
|
||||||
|
Re: FMS discovery not working?
We turned our camera LEDs on and off based on a dashboard button. We wanted to make sure they were always on at the field, in case someone forgot to hit the button.
|
|
#10
|
||||
|
||||
|
Re: FMS discovery not working?
Same here. Our code which ran the shooter wheel all the time when we were on the field didn't work.
|
|
#11
|
||||||
|
||||||
|
Re: FMS discovery not working?
I just tested isFMSAttached with FMS Lite and it worked. Not sure if there is something different in real FMS.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|