Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Gyro code problem (http://www.chiefdelphi.com/forums/showthread.php?t=42414)

AMIRAM 22-01-2006 08:11

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

Kevin Watson 22-01-2006 12:55

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

AMIRAM 22-01-2006 13:30

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

Leav 22-01-2006 15:49

Re: Gyro code problem
 
Hey Amiram,

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

-ליאב
קבוצה מס' 1578

JamesBrown 22-01-2006 21:36

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

devicenull 22-01-2006 22:05

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.

JamesBrown 22-01-2006 22:14

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

devicenull 22-01-2006 22:32

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.

JamesBrown 22-01-2006 22:36

Re: Gyro code problem
 
Oh alright, I see what you meant in you origianal post sorry about that

Kevin Watson 22-01-2006 23:48

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

AMIRAM 23-01-2006 04:26

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 .. :rolleyes:


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


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

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