Go to Post If mecanum wheels are the answer, I have found that I have asked myself the wrong question. - jwfoss [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2010, 21:59
frcchile's Avatar
frcchile frcchile is offline
Registered User
FRC #2576
 
Join Date: Jan 2008
Location: santiago, chile
Posts: 79
frcchile will become famous soon enough
PSoC + Java

Hello!!!

I have a question, I will begin to work with PSoC this week because we have ready our robot so I will make the programation for the autonumus mode and I dont know how start to work with PSoC and Java working with NetBeans I read about put a module on Crio but I dont know wich to put and the wires conection to Dashboard.

Please if someone to know how start, how Can I program the wires,etc.

Plese help me
Thank you so much!
  #2   Spotlight this post!  
Unread 08-02-2010, 22:12
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: PSoC + Java

The PSoC is not for the cRio, it is intended for the Driver Station. You can use it for the cRio, but you must understand embedded programming and probably shouldn't go there with your expertise. To use it for the Driver Station, you plug it in to USB and flash it with the FRC firmware. You must use the FRC firmware for the Driver Station. You can use the breadboard in the kit to connect it, but AndyMark has a nice Cypress Carrier Board that breaks out all of the pins to screw terminals and provides a nice resting place for the Cypress board.

The PSoC is intended to be used as digital/analog IO for the Driver Station, since the Classmate dosen't provide any.

For beginning programmers, I would recommend LabVIEW as it is easier (especially because asynchronous things like Autonomous are super easy to do).

For Autonomous, one would generally put two quadrature encoders on the robot (one on each drive side), such as the US Digital ones included in the Kit as well as a Yaw gyro, measuring rotation, and then let the WPIlib integrate the gyro and count the encoder clicks. If you need more than two gyros, you have to integrate them yourself, but you probably won't need more than a single yaw gyro unless you need a pitch gyro for ramp climbing software. Using these three sensors, you can see how far you have gone and how far/fast you are turning, and can compute exactly where you are. The most basic way of programming autonomous would be to either drive or turn or wait, each would be a function with a distance (clicks, degrees, miliseconds) that would be called by an asynchronous function.

If you have gotten all of the Teleop coding, then go on to Autonomous. Do teleop first. Not Autonomous.

When you do get to autonomous, plan it out then write functions for each common move (such as drive straight x distance or turn x degrees).

Modules for the cRio? Where did you hear that?
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PSOC Interface Card Lafleur Technical Discussion 4 09-02-2010 13:26
PSoC Build error adamdb Programming 8 06-02-2010 16:14
PSOC Understanding Gamer930 FRC Control System 1 03-02-2010 15:03
Programming the PSoC PortugazD.Ace Programming 19 31-01-2010 13:14
**FIRST EMAIL**/Java and Orbit Balls *****JAVA DISCUSSION*** Pjohn1959 Programming 37 31-08-2009 15:55


All times are GMT -5. The time now is 21:29.

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