Go to Post I think it will be very hard to find one aspect of FIRST which doesn't inspire us. - Arefin Bari [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 13-01-2004, 10:33
sscanf sscanf is offline
Registered User
#0061
 
Join Date: Jan 2004
Location: Blackstone Valley Regional, Upton, MA
Posts: 4
sscanf is an unknown quantity at this point
Question Questions on timers/simulator

Hi,

My name is Dan Rasmussen and I'm one of the new programmers for team 61 (Corey Schalck, an associate of mine, is the oter programmer for team 61 but in the same boat I am). I was an FLL coach and was asked a loaded question the Blackstone Valley FLL tournament in November (do you know how to program in C?). So here I am.

I have years of experience in writing C code (I wrote C exclusively from 1988 to 1993, lots of C++ after that, now using java) but I'm fairly new to PIC programming. I have dabbled in PIC assembler using MPLAB and GPASM as well as JAL and OOPIC. I have downloaded and compiled the default code for the full sized robot in MPLAB/C18 (note: I had to add a #define _FRC_BOARD to user_routines.c to get it to compile).

I seem to be finding my way around the default code (full robot controller) which is well commented but would like to hear about best practices for dead reckoning using timed operations. For example, I see that Process_Data_From_Master_uP is called every 26.2 ms. I could put a static counter in there and use it for timed operations or are polled/interrupt driven timers the only way to go?

Finally, I spoke to Mike Norton, the coach, last night and he told me that in previous years he was able to use a robot simulator against the compiled code that would give him a visual indication of the robot movement and pin state. I haven't tried the MPLAB sim but I have a feeling that it will fall short. Maybe there is something in the FIRST kit that I need (I only have the MPLAB/C18 downloaded from Microchip). Am I missing something if I only have the downloads from Microchip?

Thanks for any help.

Dan
 


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
3 Questions!!! (1/6/04) Andy Grady General Forum 13 06-01-2004 20:41
3 Questions!!! (1/5/04) Andy Grady General Forum 8 05-01-2004 16:01
$3500 limit - Who does not have questions Raul Rules/Strategy 5 12-01-2003 11:31
traction questions AlbertW Rules/Strategy 2 05-01-2003 17:58
Update 7 - Behind Schedule (or out of questions)? archiver 2000 2 23-06-2002 22:58


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

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