![]() |
Using a DS to control a FRC robot
Hello all.
Inspired by this project: http://roboticjourney.blogspot.com/, me and my team have decided to try and make a Nintendo DS act as a robot base station/control board. I was wondering the following things:
please reply :) |
Re: Using a DS to control a FRC robot
Oddly enough, the very first DS was a DS.
That is, the first demo we gave used a Nintendo DS as the Driver Station. The touch screen makes for some really fun driving. |
Re: Using a DS to control a FRC robot
can i please have a copy of that code? it would make this project exponentially easier
|
Re: Using a DS to control a FRC robot
This was back before NI officially joined the project, so it is a touch out of date :(
The protocol is completely different, so it wouldn't really help at all. Not even sure where it is archived. Cool project though, it should be fun! |
Re: Using a DS to control a FRC robot
/me sadface
do you know where the code for the driver station is? preferably in some !labview, but I can *try* to parse it if labview is the only road. |
Re: Using a DS to control a FRC robot
It is possible to do what you want, but you will not find the path an easy one.
The Driver Station source code is not published. The Driver Station-to-Robot communication protocol is private information. It might be easier to implement your own controller than to figure out how to emulate the FRC Driver Station. |
Re: Using a DS to control a FRC robot
Now, you can try to capture the packets being sent and recieved and reverse engineer from that. But honestly that seems like an awful lot of work to do something like that.
Use this to capture the packets: http://www.ethereal.com/ The easier thing to do is make drivers for the DS on the computer to use as a controller |
Re: Using a DS to control a FRC robot
yeah, i'll probably go back to my original idea of using a ds to control an ardubot. thanks for the advice though ;)
|
Re: Using a DS to control a FRC robot
After the 2009 season I attempted to reverse engineer the ds-robot, ds-fms, and fms-ds communication. Its not complete, but, IIRC, I had a proof of concept ds which snet static data to the robot.
My work is at http://frc1103dashboard.codeplex.com. You may find some of it useful. |
Re: Using a DS to control a FRC robot
The protocol isn't that complex, and a soft DS has been written by several people. If you can get the DS to display a jpg, that part will fall into place. The only issue is that this is close to kickoff, but otherwise, a very doable project.
Greg McKaskle |
Re: Using a DS to control a FRC robot
I have code that does exactly that, i just have to set the image size to QQVGA(?) (160x120). Where do i send data to get the image to come back?
|
Re: Using a DS to control a FRC robot
The contents of each packet are listed in the FRCCommonControlData struct in the NetworkCommunication/FRCComm.h file of the WPILib source. Wireshark (a.k.a. Ethereal) might help with disassembling the packets. I've looked at the packets with Wireshark, but it's hard to extract useful information without a disassembler plugin. Does anyone know why the protocol is supposedly private/closed-source? I would think that FIRST would encourage exactly this kind of innovation.
|
Re: Using a DS to control a FRC robot
Quote:
I have not yet published this work, partly because I too am wondering why FIRST has kept the Robot/DS protocol secret, particularly given how easy it is to reverse engineer :confused:. I can understand the desire to keep the FMS protocol secret (due to competition network security issues), but not the rest. |
Re: Using a DS to control a FRC robot
As far as I know, the protocol was not meant to be private, but it is not documented either. Perhaps this is to keep things flexible from year to year. Perhaps there was some concern about safety.
The system watchdog will shut down the robot if the communications halts, but if a badly written DS continues sending enabled packets and ignores the driver, the robot is essentially out of control. Something to keep in mind if building a DS for robots of this size and speed. Greg McKaskle |
Re: Using a DS to control a FRC robot
I'm gonna have it control a servobot over a custom udp protocol
do you know how to grab images from the robot camera over the wireless? |
| All times are GMT -5. The time now is 03:29. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi