Go to Post Driving without the trailer was quite fun, but driving with the trailer was just painful. - Paul Copioli [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 12-02-2007, 13:53
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
Camera Code Update

I've made a few changes to the camera code and would like to get some feedback before releasing it. If you can think of something you'd like changed or added, please leave a message here. These are the changes do far:

2/11/07 changes made for version 2.2:

Important: after loading the new software, make sure
you "Load default values" and then "Save changes" from
the tracking menu.

terminal.c/.h:
-Fixed benign bug where old_camera_t_packets was not getting updated in Tracking_Info_Terminal().

-Altered code to use Tracking_Config_Data values for center tilt and pan values instead of hardwired values in Tracking_Info_Terminal().

-Altered code to use Get_Camera_T_Packets() function instead of directly accessing camera_t_packets variable.

camera.c/.h:
-Added Poll_Mode() function.

-Added Get_Camera_ACKs() function.

-Added Get_Camera_NCKs() function.

-Added Get_Camera_T_Packets() function.

tracking.c/.h:
-Altered code to use Get_Camera_T_Packets() function instead of directly accessing camera_t_packets variable.

-Changed default CONFIDENCE_THRESHOLD_DEFAULT values to 10 (was 20).

-Greatly simplified search code (same functionality with less code).

-Changed search parameters so that a fixed tilt angle of about 30 degrees is used.

-For finer control, moved camera pan servo to PWM output 15.

-For finer control, Moved camera tilt servo to PWM output 16.

user_routines_fast.c:
-Replaced call to Generate_Pwms() in User_Autonomous_Code() with a call to PWM().

serial_ports_readme.txt:
-Corrected installation instruction #4.

camera_readme.txt:
-Added Virtual_Window() function description.

-Added Poll_Mode() function description.

-Added Get_Camera_ACKs() function description.

-Added Get_Camera_NCKs() function description.

-Added Get_Camera_T_Packets() function description.

pwm.h:
-Using new PWM() software, optimized camera tilt for a range of 0 to 90 degrees.


-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
 


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
Problems Combining Camera Code and Driving Code cmurdoch Programming 20 10-02-2007 16:34
Problems when combine ADC code && camera code nirhaim1942 Programming 1 24-01-2007 06:58
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28


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

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