|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#2
|
|||||
|
|||||
|
Re: Is this Programmable with C++?
Possible? ANYthing is possible.
Practical, worthwhile, interesting... THOSE are the questions to ask. |
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
Re: Is this Programmable with C++?
|
|
#5
|
||||
|
||||
|
Re: Is this Programmable with C++?
No its not this would go into the computer.
|
|
#6
|
||||
|
||||
|
Re: Is this Programmable with C++?
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. |
|
#7
|
||||
|
||||
|
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?
|
|
#8
|
||||
|
||||
|
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. Last edited by protoserge : 24-07-2013 at 10:58. |
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
|||||
|
|||||
|
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.
|
|
#11
|
||||
|
||||
|
Re: Is this Programmable with C++?
What do you mean? You can you a arduino to interface with a laptop computer. I say this because the Arduino is a computer too just not very powerful. But anyways Arduino is much better than a laptop at reading raw sensor data with it's raw I/O pin ports. What you can do is program the Arduino to detect a input then interface the arduino with the laptop through USB and using serial communication, then having a program on the computer that can read the Arduino's serial data then perform a programmed action on the computer.
I hope you know what I mean. |
|
#12
|
||||
|
||||
|
Re: Is this Programmable with C++?
How do I go about doing this?
|
|
#13
|
|||||
|
|||||
|
Re: Is this Programmable with C++?
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|