Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   Numpad on Driver Station? (http://www.chiefdelphi.com/forums/showthread.php?t=89686)

Us3rNam3 20-01-2011 19:49

Numpad on Driver Station?
 
would it be possible to use a usb numpad as controller input? If not what would be a suitable substitute for the maximum amount of buttons?

Please and Thank you

Mark McLeod 20-01-2011 23:40

Re: Numpad on Driver Station?
 
The Driver station software will not recognize anything other than an HID joystick/game controller and the Cypress I/O board.
A numpad will not work.

The Cypress board gives you a lot of input choices, or you can purchase http://www.estoprobotics.com/estore/...d&productId=33
which behaves like a standard joystick.

sjspry 21-01-2011 00:54

Re: Numpad on Driver Station?
 
You can set up a custom input scheme if you don't mind doing some programming. In fact, this way you could use practically any USB peripheral -- easiest, however, would be a keyboard or numpad which requires no libraries.

All the rules seem to have to say about this is that all communications must pass through the driver station. And, intuitively, you should only be able to use your custom controls when the robot is active, in teleoperated mode.

EDIT:

I stand corrected, as per rule 75.

Quote:

The Driver Station software provided on the FRC website (www.usfirst.org/frc/kitofparts) is
the only tool permitted to collate driver/operator inputs and communicate them to the
ROBOT. The Driver Station software must be revision 01.05.11.00 or newer.
This seems to imply you could send automated information to the cRIO bypassing the driver station. You could even lawyer it, and provide a layer of abstraction and cause a program to send automated information to the cRIO based on operator input! I somehow don't think they'll go for that, though.

Either way, this seems like a pretty stupid misinformed rule to me. Sure, you want everything to shut down when you tell it to, but assuming the driving code is within the predefined functions (except the disabled[...] ones), nothing bad would happen. Even with Murphy's Law, I doubt anyone is that unobservant.

You could perhaps demonstrate safety to an inspector (or just not tell them about it), but I wouldn't rely on it. Alternatively, http://headsoft.com.au/index.php?category=vjoy. That's probably the best option.

Mark McLeod 21-01-2011 08:41

Re: Numpad on Driver Station?
 
What terrible suggestions:mad:
Cheating and ignoring the rules to your own benefit or because you just don't feel like it, is not recommended.
It builds the wrong kind of character...

In these forums please work on making valuable contributions I'm sure you're capable of, that benefit impressionable readers (not just the posters) who don't realize your bad advice could get their robot disqualified, their reputation sullied, and their season ruined.

Vikesrock 21-01-2011 08:53

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by sjspry (Post 1004791)
This seems to imply you could send automated information to the cRIO bypassing the driver station.

In addition to flaunting the rules, what purpose would be served by sending automated information from an operator console laptop to the cRIO. Why not just store the information on the cRIO in the first place?

Alan Anderson 21-01-2011 09:48

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by Vikesrock (Post 1004878)
In addition to flaunting the rules, what purpose would be served by sending automated information from an operator console laptop to the cRIO. Why not just store the information on the cRIO in the first place?

Here's a serious answer: it's a lot more convenient to modify a file on the laptop. You wouldn't have to power up the robot and have it online in order to make changes.

Lightfoot26 21-01-2011 10:23

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by Mark McLeod (Post 1004738)
or you can purchase http://www.estoprobotics.com/estore/...d&productId=33
which behaves like a standard joystick.

I just stumbled upon this as well, and think it will be our best option, thanks!:)

sjspry 22-01-2011 18:01

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by Vikesrock (Post 1004878)
In addition to flaunting the rules, what purpose would be served by sending automated information from an operator console laptop to the cRIO. Why not just store the information on the cRIO in the first place?

... That was a serious suggestion (also, I wasn't flaunting the rules) ...

It's been said before about how hard it is to convey tone through text. And yeah, it's still hard. Regardless of the tone of my post, however, there is no reason which says I must respect the rules, only I must follow them: If I've read them and considered their purpose, I believe I have a valid claim to calling them ridiculous.

I would still suggest trying the virtual joystick software. In my opinion, it beats having to buy new hardware. Another thing I have a problem with is having to use the input devices they tell me to. I can understand them wishing all driver input to go through the station (though, as I said, it doesn't necessarily need to to remain safe), but restricting it to one type of input is absurd and restrictive.

Vikesrock 22-01-2011 18:19

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by sjspry (Post 1005829)
... That was a serious suggestion (also, I wasn't flaunting the rules) ...

It's been said before about how hard it is to convey tone through text. And yeah, it's still hard. Regardless of the tone of my post, however, there is no reason which says I must respect the rules, only I must follow them: If I've read them and considered their purpose, I believe I have a valid claim to calling them ridiculous.

I would still suggest trying the virtual joystick software. In my opinion, it beats having to buy new hardware. Another thing I have a problem with is having to use the input devices they tell me to. I can understand them wishing all driver input to go through the station (though, as I said, it doesn't necessarily need to to remain safe), but restricting it to one type of input is absurd and restrictive.

And I was asking a serious question in response. Alan provided a perfectly valid answer that makes sense.

You can use any USB input device you want. You just have to write the custom USB driver to make it look like a HID joystick or gamepad to the Driver Station software.

sjspry 22-01-2011 18:31

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by Vikesrock (Post 1005848)
And I was asking a serious question in response. Alan provided a perfectly valid answer that makes sense.

You can use any USB input device you want. You just have to write the custom USB driver to make it look like a HID joystick or gamepad to the Driver Station software.

And I was saying there's no reason why that should need to be done.

Vikesrock 22-01-2011 18:35

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by sjspry (Post 1005865)
And I was saying there's no reason why that should need to be done.

So who should be writing the code to support arbitrary input devices if not the teams? How would you propose supporting arbitrary input devices while keeping the DS software closed source?

Note: This is a serious question, not sarcastic.

sjspry 22-01-2011 18:53

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by Vikesrock (Post 1005870)
So who should be writing the code to support arbitrary input devices if not the teams?

This has nothing to do with code-writing. If I want some new input device, I have to buy something to use it, and probably some new hardware. If they'd remove rule 75, there'd be no problem (in relation to this post, he'd be able to use his numpad). Just have an inspector verify that nothing has a chance to move during the disabled stage (and no one would probably set it up this way, due to obvious reasons...)

Vikesrock 22-01-2011 18:56

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by sjspry (Post 1005891)
That's my point. If I want some new input device, I have to buy something to use it, and probably some new hardware.

A device driver is software that you write. You don't have to buy anything as far as I am aware.

sjspry 22-01-2011 18:58

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by Vikesrock (Post 1005895)
A device driver is software that you write. You don't have to buy anything as far as I am aware.

If he wanted to use a numpad/keyboard, he'd have to buy a USB encoder and interface it to the encoder. And perhaps I wish to pre-interpret my USB device's data? There's no provisions for sending it to the robot after that.

basicxman 22-01-2011 19:18

Re: Numpad on Driver Station?
 
Quote:

Originally Posted by sjspry (Post 1005891)
Just have an inspector verify that nothing has a chance to move during the disabled stage (and no one would probably set it up this way, due to obvious reasons...)

Even if you could find an inspector with the time, you would need a field to show him/her that. Pretty much every regional I've ever been to, the practice and competition fields are booked quite solid.


All times are GMT -5. The time now is 20:52.

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