![]() |
Is this Programmable with C++?
My team loves to make programmers have nightmares and really want to use this to control our robot, but I dont know if it possible.
Team 3633 |
Re: Is this Programmable with C++?
Possible? ANYthing is possible.
Practical, worthwhile, interesting... THOSE are the questions to ask. |
Re: Is this Programmable with C++?
It's a modified arduino. Use this http://www.team221.com/robotopen/
It's exactly the same but with a nice safe communication protocol written for you. |
Re: Is this Programmable with C++?
well is it
Quote:
|
Re: Is this Programmable with C++?
Quote:
|
Re: Is this Programmable with C++?
Quote:
Yes it is. Check out the schematic http://dlnmh9ip6v2uc.cloudfront.net/..._makey-v12.pdf and the github https://github.com/sparkfun/makeymakey It is programmed with the arduino IDE and is an arduino derivative. |
Re: Is this Programmable with C++?
So I've been looking at this some more and the thing holding me up from getting this is, does the Driver Station recognize the Makey Makey as a Joystick or not, and if it doesn't is it possible to modify if to recognize as a Joystick?
|
Re: Is this Programmable with C++?
The Makey Makey is an Arduino (Arduino Sketch editor is C++ code) that connects by USB to a host and is recognized as a keyboard or mouse.
This should help you out: https://www.sparkfun.com/tutorials/378 If you want to get a joystick, you'd need access to the analog input (pins A0 to A5 are analog) of the Atmel chip on the MaKey MaKey and follow something like this: http://www.arduino.cc/en/Tutorial/JoyStick. |
Re: Is this Programmable with C++?
The MakeyMakey talks to the computer as if it were a keyboard and mouse. So getting it to interface with the Driver Station would require either an additional third party program, such as AutoHotKey, or reprogramming the MakeyMakey's built-in arduino. See http://www.makeymakey.com/forums/index.php?topic=5630.0 for an idea of how to get started with stuff like that.
|
Re: Is this Programmable with C++?
It's possible to program the Dashboard to recognize keypresses on the computer running the Driver Station program, and to communicate to the robot based on the keys pressed. You can use a custom UDP communication scheme, or put the desired information in a Network Tables variable and let the provided framework move the data from place to place.
|
Re: Is this Programmable with C++?
Quote:
I hope you know what I mean. |
Re: Is this Programmable with C++?
Quote:
|
Re: Is this Programmable with C++?
Quote:
Quote:
If you want to test for a specific key, you can feed the "keys pressed" array into a For Loop using auto-indexing. Each iteration of the loop will get one of the keys in the array. You can compare the detected key against a constant representing the key you are looking for. |
| All times are GMT -5. The time now is 12:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi