Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   FMS discovery not working? (http://www.chiefdelphi.com/forums/showthread.php?t=115994)

joelg236 12-04-2013 11:44

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
    */

I know we've been red before. It did not work when we were. Any ideas? Was this overlooked during a driverstation update or something?

Jared Russell 12-04-2013 11:50

Re: FMS discovery not working?
 
Quote:

Originally Posted by joelg236 (Post 1260905)
I know we've been red before. It did not work when we were. Any ideas? Was this overlooked during a driverstation update or something?

By "blue DS" I believe they are referring to the 2009-style "little blue box" driver station, not the alliance color.

joelg236 12-04-2013 11:53

Re: FMS discovery not working?
 
Quote:

Originally Posted by Jared341 (Post 1260907)
By "blue DS" I believe they are referring to the 2009-style "little blue box" driver station, not the alliance color.

So then it should have worked regardless of our alliance?

Joe Ross 12-04-2013 12:00

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.

Joe Ross 12-04-2013 12:01

Re: FMS discovery not working?
 
Quote:

Originally Posted by joelg236 (Post 1260909)
So then it should have worked regardless of our alliance?

yes

joelg236 12-04-2013 12:03

Re: FMS discovery not working?
 
Quote:

Originally Posted by Joe Ross (Post 1260912)
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.

We did the exact same thing. I have a feeling it is something about the FMS.

ekapalka 12-04-2013 15:21

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?

joelg236 12-04-2013 15:26

Re: FMS discovery not working?
 
Quote:

Originally Posted by ekapalka (Post 1261018)
What exactly do you need isFMSAttached used for?

To adjust what data to send on the smartdashboard for competition. Don't want to get any lag.

Joe Ross 12-04-2013 16:03

Re: FMS discovery not working?
 
Quote:

Originally Posted by ekapalka (Post 1261018)
What exactly do you need isFMSAttached used for?

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.

apples000 12-04-2013 16:30

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.

Joe Ross 14-04-2013 13:57

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.


All times are GMT -5. The time now is 03:04.

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