Go to Post I would like to extend my deepest, most sincere thanks to the GDC, for bringing alliances to us in 1999. - Ken Patton [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 28-01-2006, 13:27
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Angry CODE FUSION!

I want to fuse 2005 accelerometer code, 2006 gyro code, 2006 camera code and 2006 default code into one Code! How can i do that?
I tried adding accelerometer.c, accelerometer.h, gyro.c, gyro.h into 2006 camera code and it compiled the code and i was happy that it worked but when i downloaded that code into the robot! Neither Gyro worked, Nor accelerometer. Can someone tell me the proper way to fuse the codes together! Please and Thank You

E-mail: jigarjuhi@yahoo.ca
  #2   Spotlight this post!  
Unread 28-01-2006, 18:19
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: CODE FUSION!

Not only do you have to have the .c and .h files as part of your project you need to have the methods called. Just including the methods will not have them do anything.
  #3   Spotlight this post!  
Unread 28-01-2006, 19:32
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Re: CODE FUSION!

Quote:
Originally Posted by chris31
Not only do you have to have the .c and .h files as part of your project you need to have the methods called. Just including the methods will not have them do anything.
So wut should i include? and how do i do it? Can you please provide step by step instructions because many teams will come across this problem later on! Thank You
  #4   Spotlight this post!  
Unread 28-01-2006, 19:56
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: CODE FUSION!

The step by step instructions you need are in the code you downloaded. Look for files named gyro_readme.txt and the like.
  #5   Spotlight this post!  
Unread 28-01-2006, 20:13
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Re: CODE FUSION!

Quote:
Originally Posted by Alan Anderson
The step by step instructions you need are in the code you downloaded. Look for files named gyro_readme.txt and the like.
I understand what you are saying but I did everything as it stated in readme.txt but it doesn't work out. So I have no idea what to do now cuz all my hard work goes down the drain if i am not able to successfuly fuse the codes
  #6   Spotlight this post!  
Unread 28-01-2006, 20:34
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: CODE FUSION!

Without more information about what you're expecting to happen and what it's doing instead, I only have one suggestion. Look to make sure your Default_Routine() isn't still commented out.
  #7   Spotlight this post!  
Unread 29-01-2006, 14:06
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Re: CODE FUSION!

The default routine is fine, i checked its not commented out. I anyone has 5 minutes and if they want to do something. I think they should try fusing the code themselves because using MPLAB i wasn't able to do it.
  #8   Spotlight this post!  
Unread 29-01-2006, 15:57
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: CODE FUSION!

if u email me with your codes in a .zip file i can fuse them together for u(possibly there may be issues with the code itself causeing the problems and things like that i will leave to you to try and fix but i will still help you as much as possible): fst79ta AT gmail DOT com
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
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
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Code suddenly fails to initialize miketwalker Programming 11 19-02-2005 15:23
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
Sourceforge for Code Repository and other stuff SilverStar Programming 9 15-01-2005 21:16
heres the code. y this not working omega Programming 16 31-03-2004 15:18


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

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