Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Problems Combining Camera Code and Driving Code (http://www.chiefdelphi.com/forums/showthread.php?t=42830)

Jon236 05-02-2006 11:39

Re: Problems Combining Camera Code and Driving Code
 
1 Attachment(s)
Quote:

Originally Posted by kaszeta
Any more of your code you can share with us (the rest of user_routines_fast.c, for example)?


Sure, here it is

Jon

kaszeta 05-02-2006 11:47

Re: Problems Combining Camera Code and Driving Code
 
Quote:

Originally Posted by Jon236
Sure, here it is

Jon

Nothing obvious looks amiss here. You've got two handler routines for your sonar, so I'm going to guess that the problem is there. How much code are these? Interrupt code needs to be tight and minimal, if there is too much code it can't process the interrupt handler fast enough and you get RLOD.

Jon236 05-02-2006 11:49

Re: Problems Combining Camera Code and Driving Code
 
Quote:

Originally Posted by kaszeta
Nothing obvious looks amiss here. You've got two handler routines for your sonar, so I'm going to guess that the problem is there. How much code are these? Interrupt code needs to be tight and minimal, if there is too much code it can't process the interrupt handler fast enough and you get RLOD.

I've been doing a sequential comment-out-and-test, ditching both sonar code and adc code....getting the same RLOD....figuring it's something really stupid, like an effect of a missed semicolon that the compiler didn't pick up on..

Jon

Jon236 06-02-2006 18:47

Re: Problems Combining Camera Code and Driving Code
 
1 Attachment(s)
With gracious assistance from Kevin Watson, I have finally been able to get the camera, sonar, yaw sensor, quadrature encoders and gyro (with the ADC code) working. The attached zip file should help.....just add the rest of your control algorithms and presto!, a working robot.......now, if our build team would just finish............

Jon Mittelman
Team236 Programming Mentor

monkeyleader 09-02-2007 00:48

Re: Problems Combining Camera Code and Driving Code
 
I took the camera code and adjusted that for driving, but I've just been using the camera project so there already is no srl_dvr.c/h or whatever the exact name is. Everything works great except that p2_y does nothing and I cant figure out why. I commented out the camera stuff in Process_Data_From_Master_uP and now it works fine so i know they are conflicting, but i can't find where. I thought at first it was with the pwm's but I already changed the defaults to 5 and 6 for the camera as our motors use 1-4. I'm not really familiar with the tx and rx and interupt stuff you guys were talking about. I mean i know what tx and rx datas are, but idk what u guys are talking about messing with them, I just leave that stuff alone cuz im not quite that advanced.

paulcd2000 10-02-2007 16:34

Re: Problems Combining Camera Code and Driving Code
 
did you carefully follow all the steps in the readme? i see people not doing that a lot


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

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