Go to Post Sometimes simplicity is the best feature you can show off. - Koko Ed [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 25-03-2003, 21:29
rosebud rosebud is offline
Registered User
#0115 (MVRT)
 
Join Date: Sep 2002
Location: California
Posts: 24
rosebud is on a distinguished road
read and write command

hey,
anyone know exactly how the read and write command work? i can read and write information to eeprom in my main program, but then in the autonomous program it cant seem to read the data in eeprom. also, if anyone can explain how the memory map works for multiple programs. they seem to be on top of each other, and if i add them up they go beyond 100% full. thanks
  #2   Spotlight this post!  
Unread 25-03-2003, 21:55
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Each "slot" has it's own EEPROM space, so what you write while in your main program (using something like WRITE 1, p1_y) will not be retrievable from other slots.

Also, the 26 bytes of RAM are shared between all slots, so the fact that the total is >26 doesn't matter. What matters is that no individual slot uses more than 26 bytes of space.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #3   Spotlight this post!  
Unread 26-03-2003, 19:29
rosebud rosebud is offline
Registered User
#0115 (MVRT)
 
Join Date: Sep 2002
Location: California
Posts: 24
rosebud is on a distinguished road
thanks. do u know why i am getting about 14 program cycles a second? i thought the constant was around 25 cycles per second
  #4   Spotlight this post!  
Unread 26-03-2003, 19:44
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
26ms is merely the step size. Thus, you can have a loop speed of 26, 52, 75ms, etc. If you have a lot of code, or code that takes a long time to exectute, it can be significantly more than the 26.

Common culprits are the debug commands as they are VERY slow. Make sure to comment them out before an actual competition.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
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
variable? manodrum Programming 11 01-04-2003 17:20
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30
Pit News Magazine Please Read!!!!!! Mike Schroeder General Forum 9 27-02-2003 22:01
ALL OAKLAND COUNTY, MICHIGAN, TEAMS READ THIS!!!!! archiver 2000 0 23-06-2002 23:12
A bit unfair... Martin General Forum 61 26-02-2002 07:48


All times are GMT -5. The time now is 01:56.

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