Go to Post The bleachers at a FIRST competition should be full of people blasting energy out of every pore of their bodies. - dlavery [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
  #12   Spotlight this post!  
Unread 28-01-2007, 15:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Autonomous Mode

Do i understand correctly that you started with Kevin Watson's "bells and whistles" 2.1 code?

Used as is there seem to be conflicting calls to set PWMs 13,14,15,16 mixing a new method Kevin's introduced with an older unreliable method. Just an oversight.

In User_Autonomous() replace:
Code:
        Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
with
Code:
 PWM(pwm13,pwm14,pwm15,pwm16);
P.S. You also need to add #include "pwm.h" to user_routines_fast.c


There is also some extra code you should probably comment out in Default_Routine() just before pwms13,14,15,16 are set:
Code:
  p1_x = 255 - p1_y;
  p1_y = 255 - pwm05;

You might also try testing your output on pwms other than 13-16.

P.S. Remember you have to copy the camera calls from user_routines.c into your autonomous routine to keep the camera running during autonomous.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 29-01-2007 at 08:26.
 


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
Autonomous Mode tysonwormus Rumor Mill 11 08-01-2004 22:59
Autonomous mode AntmanIV General Forum 1 17-02-2003 13:30
autonomous mode Stephanie Programming 2 25-01-2003 19:57
Autonomous Mode David Bryan Programming 1 21-01-2003 21:15
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


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

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