Go to Post As for Dave and the stairs, just ignore him like the rest of the FRC GDC does... ;) - Rich Kressly [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 24-01-2006, 21:32
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Running K. Watson's code on Edubot, BRLOD

Since it seems our '06 controller isn't working (long story) I'm trying to work on the camera with our Edubot controller.

I downloaded Kevin Watson's camera code (streamlined version) and opened it up in MPLab. I followed the directions in "Using_Last_Years_FRC.txt" (Change device/libraries/etc.) I then compiled and uploaded the file to my controller.

I have the camera connected correctly. Pan is pwm01, tilt is pwm02, power is on pwm03 and serial is connected via rs232->ttl adapter on the TTL port.

However, when I turn the controller on I get a blinking red light of death (BRLOD) on "Program State"

I threw in a couple printf's to see if I could diagnose the point of failure. I put printf's in at
  • Line 178 (after the #endif of #ifdef TERMINAL_SERIAL_PORT_2)
  • Line 180 (after Putdata(&txdata); and before User_Proc_Is_Ready())
  • Before Tracking_Info_Terminal();
  • After Tracking_Info_Terminal();
  • After Camera_Handler();
  • After Servo_Track();
None of these print out, so it seems that something may be failing in or before the serial port initialization.

Does anyone have any idea of what's wrong, because I sure don't
__________________
http://www.mikesorrenti.com/
  #2   Spotlight this post!  
Unread 24-01-2006, 21:50
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: Running K. Watson's code on Edubot, BRLOD

try putting the flies into the edubot's default code if you have not already. also did you read the thing about including stdio.h when using printf with the edubot controller.
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


  #3   Spotlight this post!  
Unread 24-01-2006, 22:16
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Running K. Watson's code on Edubot, BRLOD

Quote:
Originally Posted by CmptrGk
try putting the flies into the edubot's default code if you have not already. also did you read the thing about including stdio.h when using printf with the edubot controller.
I just tried importing all the seperate components into one Edubot project and it still doesn't work.

Also, stdio.h is included on all files that use printf.
__________________
http://www.mikesorrenti.com/
  #4   Spotlight this post!  
Unread 25-01-2006, 01:26
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: Running K. Watson's code on Edubot, BRLOD

Quote:
Originally Posted by Mike
I just tried importing all the seperate components into one Edubot project and it still doesn't work.

Also, stdio.h is included on all files that use printf.
Try this code: http://kevin.org/frc/edu_camera.zip. As I haven't tested it, please let me know whether or not it worked for you (I'd be suprised if it didn't work).

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #5   Spotlight this post!  
Unread 25-01-2006, 13:37
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: Running K. Watson's code on Edubot, BRLOD

Quote:
Originally Posted by Kevin Watson
Try this code: http://kevin.org/frc/edu_camera.zip. As I haven't tested it, please let me know whether or not it worked for you (I'd be suprised if it didn't work).

-Kevin

Mike - if Kevin's .zip gives you trouble, PM me and I will send you our camera-enabled code which runs on EduBot. That is how we are doing our initial work, too.

I basically took the EduBot default code and followed the instructions in Kevin's non-bells-and-whistles camera zip archive.

Note that it is not sufficient to follow the "Using last years rc" text file because the full size RC code is not directly compatible with the EduRC.
  #6   Spotlight this post!  
Unread 25-01-2006, 20:30
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Running K. Watson's code on Edubot, BRLOD

Quote:
Originally Posted by Kevin Watson
Try this code: http://kevin.org/frc/edu_camera.zip. As I haven't tested it, please let me know whether or not it worked for you (I'd be suprised if it didn't work).

-Kevin
This code works perfectly

It tracks beautifully, I think I speak for everyone when I say thanks
__________________
http://www.mikesorrenti.com/
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
Strange products upon running code... neilsonster Programming 17 10-08-2005 00:20
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
Kevin Watson's Kick-off Demo Code! Mr. Lim Programming 27 22-01-2005 03:38
heres the code. y this not working omega Programming 16 31-03-2004 15:18


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

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