Go to Post [I] [/I]I think this may be some kind of record. We got through 9 entire posts before someone mangled the spelling of mecanum. [I] [/I] - Ether [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 18-02-2008, 23:48
Lone_Wolf92c Lone_Wolf92c is offline
Registered User
FRC #2167
 
Join Date: Jan 2008
Location: Missouri
Posts: 1
Lone_Wolf92c is an unknown quantity at this point
p2 not working?

We've set our robot to use a single joystick drive, planning to use a seperate joystick (manned by a second operator) to operate our claw/arm/etc... The problem is that the robot doesn't seem to be getting feed from the second joystick.

Do we need to initialize this second joystick somehow, because I don't remember initializing the first one to begin with. (The terminal window that opens after using the IFI Loader only shows the inputs from p1_y, p1_x, p1_trig, and p1_top)
  #2   Spotlight this post!  
Unread 19-02-2008, 00:14
SL8's Avatar
SL8 SL8 is offline
...
AKA: Jesus
FRC #0647 (Cyber Wolf Corps)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Killeen, Texas (Fort Hood)
Posts: 352
SL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud of
Send a message via Yahoo to SL8
Re: p2 not working?

Could you include your code and your controller configuration? I could not really help otherwise.
__________________



Last edited by SL8 : 19-02-2008 at 00:16. Reason: incomplete sentence
  #3   Spotlight this post!  
Unread 19-02-2008, 00:16
SL8's Avatar
SL8 SL8 is offline
...
AKA: Jesus
FRC #0647 (Cyber Wolf Corps)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Killeen, Texas (Fort Hood)
Posts: 352
SL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud ofSL8 has much to be proud of
Send a message via Yahoo to SL8
Re: p2 not working?

also, are you using easyC or Mplab
__________________


  #4   Spotlight this post!  
Unread 19-02-2008, 03:11
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: p2 not working?

The printout in the terminal is only an example. The values for the second joystick are available in the variables that you might expect (p2_x, p2_y, etc.). You just don't happen to be printing them out.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #5   Spotlight this post!  
Unread 19-02-2008, 09:48
jasonpeinko jasonpeinko is offline
Registered User
FRC #1087
 
Join Date: Jan 2008
Location: Salem Oregon
Posts: 22
jasonpeinko is an unknown quantity at this point
Re: p2 not working?

i think your triggers need to p1_sw_trig
  #6   Spotlight this post!  
Unread 22-02-2008, 08:49
gnormhurst's Avatar
gnormhurst gnormhurst is offline
Norm Hurst
AKA: gnorm
#0381 (The Tornadoes)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Trenton, NJ
Posts: 138
gnormhurst will become famous soon enoughgnormhurst will become famous soon enough
Re: p2 not working?

That's correct: you don't need to init the joysticks. Yes, the port 2 values are accessed just like port 1 except using "p2_" instead of "p1_".

Is the second joystick broken? Plug it into port 1 to see if it will work like the other joystick.

If you can add printf's to print the p2_ values, that should help you figure things out.

If you're still stuck, post more info and code...
__________________
Trenton Tornadoes 381
2004 Philadelphia Regional Winners
2006 Xerox Creativity Award
---
My corner of the USPTO.
My favorite error message from gcc: main is usually a function
My favorite error message from Windows: There is not enough disk space available to delete this file.
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
IR Board Not Working (But NOT Fried) itsme Electrical 2 18-02-2008 06:11
Gyro not working 1594code Programming 2 12-02-2008 18:16
CMUCam not working Inverted Programming 10 04-02-2005 19:32
Radios not working... E Jones 234 Control System 3 21-01-2005 21:58


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

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