Go to Post After talking with the students on these teams I could see the light in their eyes. These were their robots! Inspired? That would be a definate YES! - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-03-2011, 19:08
Arjun Namineni Arjun Namineni is offline
Registered User
FRC #4384
Team Role: Coach
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Troy, MI
Posts: 27
Arjun Namineni is an unknown quantity at this point
Cypress I/O Module

My team has decided to use the Cypress Board this year, and we are not entirely sure how to program it. Can anyone either explain it or reply with a link to where I can find further information?

I have already gone through the "How to Configure Your I/O Module" pdf on the KOP website, but it doesn't really explain how to program it.

Thanks in advance!
__________________
2009-2013: FRC 226 - Student
2014-Present: FRC 4384 - Mentor
Reply With Quote
  #2   Spotlight this post!  
Unread 04-03-2011, 19:28
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,050
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Cypress I/O Module

Quote:
Originally Posted by Arjun Namineni View Post
My team has decided to use the Cypress Board this year, and we are not entirely sure how to program it. Can anyone either explain it or reply with a link to where I can find further information?

I have already gone through the "How to Configure Your I/O Module" pdf on the KOP website, but it doesn't really explain how to program it.

Thanks in advance!
You don't program it. You load firmware onto it (as explained in the pdf you found), and then connect wires to it appropriately.

In your robot code, you access the inputs/outputs that you hooked up via the DriverStation class, or if you use the more advanced features of the board, through the DriverStationEnhancedIO class.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #3   Spotlight this post!  
Unread 04-03-2011, 20:42
Arjun Namineni Arjun Namineni is offline
Registered User
FRC #4384
Team Role: Coach
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Troy, MI
Posts: 27
Arjun Namineni is an unknown quantity at this point
Re: Cypress I/O Module

Let's say, for example, that I have buttons hooked up to the Cypress Board and I wanted to grab the state of each button. How would I do that inside my C++ code (i.e. what class and function etc. would I use)? Also, I am not worried about the dashboard.
__________________
2009-2013: FRC 226 - Student
2014-Present: FRC 4384 - Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 04-03-2011, 22:42
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Cypress I/O Module

Code:
DriverStationEnhancedIO &dseio = DriverStation::GetInstance()->GetEnhancedIO();


// read first analog input
float value = dseio.GetAnalogIn(1);
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 16-03-2011, 17:52
kws4000's Avatar
kws4000 kws4000 is offline
Team Mentor - Programming
AKA: Krazy Karl
FRC #2405 (Divided by Zero)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Fruitport, MI
Posts: 164
kws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the rough
Re: Cypress I/O Module

We have just installed all Cypress software from disk, and we are only able to get it to be recognizzed on an XP machine and not on the classmate, wich is Windows 7. The softwatre claims that a service has not been statrted.

What to do?
Reply With Quote
  #6   Spotlight this post!  
Unread 16-03-2011, 18:45
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,754
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Cypress I/O Module

You can try starting the CyMiniProg3 service.

It's under Control Panel->Administrative Tools->Services
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-03-2011 at 18:47.
Reply With Quote
  #7   Spotlight this post!  
Unread 16-03-2011, 18:52
kws4000's Avatar
kws4000 kws4000 is offline
Team Mentor - Programming
AKA: Krazy Karl
FRC #2405 (Divided by Zero)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Fruitport, MI
Posts: 164
kws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the rough
Re: Cypress I/O Module

Not there. Itr appears that it does not install correctly into Windows 7.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-03-2011, 23:36
kws4000's Avatar
kws4000 kws4000 is offline
Team Mentor - Programming
AKA: Krazy Karl
FRC #2405 (Divided by Zero)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Fruitport, MI
Posts: 164
kws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the rough
Exclamation Re: Cypress I/O Module

It does not install correctly on 7.

However, some folks over at team 266 at WMR COmpetition told me to unistall Cypress and redo updates. I have done all of them and still no coms (little light on I/O tab lit). File version is v2 as included in public files on classmate, as configured from another laptop.

Wellll???????????
Reply With Quote
  #9   Spotlight this post!  
Unread 18-03-2011, 02:42
AlexD744 AlexD744 is offline
Registered User
FRC #0744 (744 Shark Attack)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ft. Lauderdale, FL
Posts: 638
AlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond repute
Re: Cypress I/O Module

Although I don't know how to help you with your current problem, I will let you know that the IO Board can be flaky. Last year we would have to restart our classmate before our matches and pray that the IO would be there. This year we are still using the board, and although we have not had any problems yet, we have programed all of the necessary functions to work with joystick buttons and not the IO Board if and only if the main driver is holding one of the triggers, that way, even if IO goes down, we can still play our match. (although the drivers' hands will be kinda cramped)

But I'd say work first on getting it to work and I'm really sorry that I don't have any answers for you, other than I can tell you it works with the Windows 7 on our Classmate.
__________________
www.sharkattack744.com
Reply With Quote
  #10   Spotlight this post!  
Unread 19-03-2011, 00:05
kws4000's Avatar
kws4000 kws4000 is offline
Team Mentor - Programming
AKA: Krazy Karl
FRC #2405 (Divided by Zero)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Fruitport, MI
Posts: 164
kws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the roughkws4000 is a jewel in the rough
Red face Re: Cypress I/O Module

I would like to put out a big thanks to all of Team 226 at the West Michigan meet. It took a full install of evrything: refornmating of DS, all updates, and 2 hours, but she works now! The Cypress board even gets recognized when the DS is already running!

Note to evryone: DO NOT INSTALL CYPRESS DISK ON LAPTOPS THAT YOU WANT TO DRIVE WITH!

It's done: HALLE-.... oh hang on, it's lent.

Now I just have to start assigning variables and finishing wiring.....
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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