Go to Post Frankly, I love CD and everything it stands for. I've made more friends from this forum alone than I ever expected to meet in FIRST. I'd give just about anything to keep this system up, upgraded and going on long into the future. It's not even enough to show my thanks and gratitude. - BandChick [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 22-01-2006, 08:11
AMIRAM AMIRAM is offline
Registered User
no team
 
Join Date: Jan 2006
Location: ISRAEL
Posts: 16
AMIRAM is an unknown quantity at this point
Gyro code problem

Hi


im tring to use the gyro code . the gyro is working fine but

the p1_x is not getting changing when i move the joystick...
(p1_x moves when i move the y - axis)

can anyone tall me what do i need to change in the code to make it work?



thanks
  #2   Spotlight this post!  
Unread 22-01-2006, 12:55
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Gyro code problem

Quote:
Originally Posted by AMIRAM
Hi


im tring to use the gyro code . the gyro is working fine but

the p1_x is not getting changing when i move the joystick...
(p1_x moves when i move the y - axis)

can anyone tall me what do i need to change in the code to make it work?



thanks
If you're using my code, it's very likely that the default code is still commented out in user_routines.c/Process_Data_From_Master_uP(). This is done for safety reasons.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 22-01-2006, 13:30
AMIRAM AMIRAM is offline
Registered User
no team
 
Join Date: Jan 2006
Location: ISRAEL
Posts: 16
AMIRAM is an unknown quantity at this point
Re: Gyro code problem

Im calling the Default_routine function from ther and it still not working...


i think the problem is in the serial port routine becuse when im traing to use "FRC SERIAL PORT" code its not working as well



Amiram
  #4   Spotlight this post!  
Unread 22-01-2006, 15:49
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Re: Gyro code problem

Hey Amiram,

מה קורה?
אני ממליץ שתשתמש בבודק שגיאות האיות באנגלית, ככה יהיה להם יותר נוח לקרוא את ההודעות שלך ולעזור לך...

-ליאב
קבוצה מס' 1578
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
  #5   Spotlight this post!  
Unread 22-01-2006, 21:36
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,284
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
Re: Gyro code problem

Quote:
Originally Posted by Kevin Watson
If you're using my code, it's very likely that the default code is still commented out in user_routines.c/Process_Data_From_Master_uP(). This is done for safety reasons.

-Kevin

I was wondering if you could elaborate on this, I did not comment much of what you had commented whaen I added your gyro code to my code from last year, what risks does this present?

James
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #6   Spotlight this post!  
Unread 22-01-2006, 22:05
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Gyro code problem

Quote:
Originally Posted by JamesBrown
I was wondering if you could elaborate on this, I did not comment much of what you had commented whaen I added your gyro code to my code from last year, what risks does this present?

James
Uncalibrated joysticks + robot motors. Not a good combination. I think it's better off disabled by default.. less chance of you not realizing it's got enabled drive motors.



AMIRAM, It sounds like you either have a bad joystick, or someone was playing with the Disable switches on the OI. I suggest trying another joystick, or looking at those switches.
  #7   Spotlight this post!  
Unread 22-01-2006, 22:14
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,284
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
Re: Gyro code problem

I dont see how this being uncommented is any different then the default code, I changed Kevins variable i in order to avoid haing to variables with the same name. Could you please elaborate, I dont see how this would enable any motors that woulnt be enabledin the default code.

Thanks
James
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #8   Spotlight this post!  
Unread 22-01-2006, 22:32
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Gyro code problem

Quote:
Originally Posted by JamesBrown
I dont see how this being uncommented is any different then the default code, I changed Kevins variable i in order to avoid haing to variables with the same name. Could you please elaborate, I dont see how this would enable any motors that woulnt be enabledin the default code.

Thanks
James

Ignore the rest of my post other then this:

Quote:
AMIRAM, It sounds like you either have a bad joystick, or someone was playing with the Disable switches on the OI. I suggest trying another joystick, or looking at those switches.
The rest had nothing to do with your problem.
  #9   Spotlight this post!  
Unread 22-01-2006, 22:36
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,284
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
Re: Gyro code problem

Oh alright, I see what you meant in you origianal post sorry about that
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #10   Spotlight this post!  
Unread 22-01-2006, 23:48
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Gyro code problem

Quote:
Originally Posted by devicenull
Uncalibrated joysticks + robot motors. Not a good combination. I think it's better off disabled by default.. less chance of you not realizing it's got enabled drive motors.
Yep. I don't want people loading my code on their 'bot with the possibility that some motor is going to take off on them.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #11   Spotlight this post!  
Unread 23-01-2006, 04:26
AMIRAM AMIRAM is offline
Registered User
no team
 
Join Date: Jan 2006
Location: ISRAEL
Posts: 16
AMIRAM is an unknown quantity at this point
Re: Gyro code problem

Hi


Im using the FRC 2006 Default_code when i add kevin's serial port code the FRC is not geting the right Data from the OI ..


can u tell me who to edit the "Serial_Char_Callback" function to recive Data

from the ttl port

tried to do it with kevin's serial code and it didnt work


thanks
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
Gyroscope Code Kevin Watson Programming 65 01-03-2008 23:46
Analog-to-Digital Converter Code Kevin Watson Programming 29 17-02-2008 13:07
Trying to import Camera code into program without. Kingofl337 Programming 1 18-02-2005 00:43
Problem running compiled code jskene Programming 10 23-01-2005 21:13
Wierd gyro code problems...pls help Salik Syed Programming 4 14-03-2004 01:29


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

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