Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Is this Programmable with C++? (http://www.chiefdelphi.com/forums/showthread.php?t=117045)

Halo_Kid_3633 23-05-2013 15:33

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

DonRotolo 23-05-2013 20:26

Re: Is this Programmable with C++?
 
Possible? ANYthing is possible.
Practical, worthwhile, interesting... THOSE are the questions to ask.

mman1506 23-05-2013 21:53

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.

Halo_Kid_3633 26-05-2013 17:18

Re: Is this Programmable with C++?
 
well is it
Quote:

Originally Posted by DonRotolo (Post 1276914)
Practical, worthwhile, interesting


Halo_Kid_3633 26-05-2013 17:22

Re: Is this Programmable with C++?
 
Quote:

Originally Posted by mman1506 (Post 1276939)
It's a modified arduino.

No its not this would go into the computer.

mman1506 26-05-2013 17:27

Re: Is this Programmable with C++?
 
Quote:

Originally Posted by Halo_Kid_3633 (Post 1277278)
No its not this would go into the computer.


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.

Halo_Kid_3633 31-05-2013 12:33

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?

protoserge 24-07-2013 10:43

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.

nightpool 21-10-2013 09:56

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.

Alan Anderson 21-10-2013 11:13

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.

mechanical_robot 29-10-2013 08:21

Re: Is this Programmable with C++?
 
Quote:

Originally Posted by Halo_Kid_3633 (Post 1277278)
No its not this would go into the computer.

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.

Halo_Kid_3633 05-11-2013 11:31

Re: Is this Programmable with C++?
 
Quote:

Originally Posted by Alan Anderson (Post 1297648)
It's possible to program the Dashboard to recognize keypresses.

How do I go about doing this?

Alan Anderson 05-11-2013 14:50

Re: Is this Programmable with C++?
 
Quote:

Originally Posted by Alan Anderson (Post 1297648)
It's possible to program the Dashboard to recognize keypresses...

Quote:

Originally Posted by Halo_Kid_3633 (Post 1300312)
How do I go about doing this?

The relevant functions are in the Connectivity -> Input Device Control subpalette. Use the Initialize Keyboard vi to create a reference to the computer's keyboard. Pass that reference to the Acquire Input Data vi. The output of the Acquire will be an array containing all the keys that are currently pressed.

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