Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Joystick mapping changed between 2014DS and 2015DS in 2014 mode? (http://www.chiefdelphi.com/forums/showthread.php?t=137897)

fovea1959 03-08-2015 10:31

Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
we've kept an old laptop around to use as the driver's station for our 2014 robot. that laptop got sick this weekend, so we fired up a 2015 ds, set it to 2014 mode, and things were mostly ok.

we see a half red/ half green comm indicator for the robot, but reading other threads indicates that normal.

it *seems* that the 2015 DS maps the axes on an XBox controller differently than the 2014 DS. Can anyone confirm or deny?

SenorZ 03-08-2015 10:45

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
The DS should be sending through whatever the laptop is processing.
I'd be curious to know if the new computer was utilizing some sort of special xbox mapping for gaming and sending that to the DS.

notmattlythgoe 03-08-2015 10:46

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
The mapping differences you might be seeing could be related to the fact that the mappings are all 0 indexed now.

EDesbiens 03-08-2015 11:41

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
I'm on labview and I get a very different axis mapping... The buttons only changed to accomodate the 0 index but the axis are really weird...

Monochron 03-08-2015 11:45

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
We recently did a similar thing with our 2014 robot, but didn't notice any different mappings. We had the same half red / half green status light and were able to fix it by putting the correct firmware on the cRIO. Only the correct firmware will allow a cRIO to talk to a 2015 DS, so you may want to check that it is up to date.

marshall 03-08-2015 11:49

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
Quote:

Originally Posted by fovea1959 (Post 1492206)
we've kept an old laptop around to use as the driver's station for our 2014 robot. that laptop got sick this weekend, so we fired up a 2015 ds, set it to 2014 mode, and things were mostly ok.

we see a half red/ half green comm indicator for the robot, but reading other threads indicates that normal.

it *seems* that the 2015 DS maps the axes on an XBox controller differently than the 2014 DS. Can anyone confirm or deny?

I can confirm we had an issue like this that we ran into with beta testing. I don't recall exactly what the cause was but it had to do with the 0 indexing and the POV hats being read as different values... at least that is what I remember.

jkoritzinsky 03-08-2015 12:23

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
Quote:

Originally Posted by fovea1959 (Post 1492206)
we've kept an old laptop around to use as the driver's station for our 2014 robot. that laptop got sick this weekend, so we fired up a 2015 ds, set it to 2014 mode, and things were mostly ok.

we see a half red/ half green comm indicator for the robot, but reading other threads indicates that normal.

it *seems* that the 2015 DS maps the axes on an XBox controller differently than the 2014 DS. Can anyone confirm or deny?

The 2014 Driver Station used the outdated DirectInput API to get the inputs for joysticks. The 2015 DS uses XInput. This is the cause of the changes other than the switch to the 0-based axes/buttons.

Jonathan L. 03-08-2015 19:43

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
Quote:

Originally Posted by fovea1959 (Post 1492206)
we see a half red/ half green comm indicator for the robot, but reading other threads indicates that normal.

One side of the Communication indicator shows the status of the TCP connection (used for sporadic data like errors, Usage Reporting and PDP Logs), the other half shows the UDP connection (for the main robot control and status). You might want to check your firewall settings.

fovea1959 04-08-2015 13:42

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
Quote:

Originally Posted by Monochron (Post 1492222)
We recently did a similar thing with our 2014 robot, but didn't notice any different mappings. We had the same half red / half green status light and were able to fix it by putting the correct firmware on the cRIO. Only the correct firmware will allow a cRIO to talk to a 2015 DS, so you may want to check that it is up to date.

What is the correct firmware (and how do I check what's running on the cRIO)?

fovea1959 04-08-2015 13:43

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
Quote:

Originally Posted by Jonathan L. (Post 1492282)
One side of the Communication indicator shows the status of the TCP connection (used for sporadic data like errors, Usage Reporting and PDP Logs), the other half shows the UDP connection (for the main robot control and status). You might want to check your firewall settings.

Is this the case if talking to a 2014 robot? Has anyone gotten a full green with a 2014 robot?

FrankJ 04-08-2015 14:27

Re: Joystick mapping changed between 2014DS and 2015DS in 2014 mode?
 
Quote:

Originally Posted by fovea1959 (Post 1492358)
Is this the case if talking to a 2014 robot? Has anyone gotten a full green with a 2014 robot?

You will not. The half red indicates 2014 protocol.

Edit: more properly the communication status means this: ( screen step live DS direction)
Quote:

Major Status Indicators - These three indicators display major status items for the DS. The
"Communications" indicates whether the DS is currently communicating with the FRC Network
Communications Task on the roboRIO (this year it is split in half for the TCP and UDO
communication).
The 2014 protocol presumably only uses half of this hence half red / half green


All times are GMT -5. The time now is 02:56.

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