Go to Post I know I will never be part of an alliance this incredible, ever again (my apologies to all future partners, but you've got BIG shoes to fill.) - JVN [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-2005, 17:13
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,281
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Victors controlled with joystick Buttons

For the motor that drives are arm I am trying to use PWM9 with the hat on the port 1 joystick. Using the default code when I turn on the robot the motor spins, When i push the hat forward it spins faster and when i push it backwards it spins alower, Any idea what the problem may be?

James
  #2   Spotlight this post!  
Unread 18-02-2005, 21:28
Matt_Kitts's Avatar
Matt_Kitts Matt_Kitts is offline
Registered User
AKA: Kitts
FRC #1370 (Blue Charge)
Team Role: Mechanical
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Middletown, DE
Posts: 16
Matt_Kitts is on a distinguished road
Send a message via AIM to Matt_Kitts Send a message via Yahoo to Matt_Kitts
Re: Victors controlled with joystick Buttons

check your calibration
  #3   Spotlight this post!  
Unread 18-02-2005, 23:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Victors controlled with joystick Buttons

The "problem" is that the hat is not a joystick. Use the Dashboard program to see what analog values it provides on the wheel input. I don't have the actual values handy at the moment, but ours is something like 95 for down, 255 for up, and 43 for center. Left and right have specific values too. You can also detect simultaneous left/down and right/down if you want to, but the up resistor is of low enough value that it overpowers the left and right and always gives 255.

(I don't think the default code does anything with that value, though. I suspect your joystick just needs to be recentered with the little trim control to the right on the base, and you're actually moving the joystick itself when you try to use the hat.)
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
Programming motors with joystick buttons TMHStitans Programming 5 21-03-2005 21:07
joystick buttons and a quick question h0x4r Programming 2 17-02-2005 00:18
Victors, Default code, & joystick configuration Vermatitis Control System 4 27-01-2005 16:01
Using the extra buttons on the joystick. Code\\Pilot Programming 7 04-12-2004 19:30
problem with joystick buttons (top left one) Richomundo Programming 5 15-02-2004 17:16


All times are GMT -5. The time now is 00:15.

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