Subject:
|
Re: DATALOG and C
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Mon, 25 Jan 1999 17:40:48 GMT
|
Viewed:
|
1287 times
|
| |
| |
Ben Williamson <benw@pobox.com> wrote:
> BTW, what is the maximum size for the datalog, and how do you tell if
> SetDatalog failed to allocate the space you asked for? Perhaps there
> aren't answers to either of these questions. I've been using a 2000 entry
> log, seems to work okay.
I believe that the maximum size of the datalog is 2033 entries, minus
whatever you need for program data.
If you want to figure this out dynamically from the PC, get the memory map
after downloading all programs to the RCX. The maximum datalog size is
then (map[93] - map[90] - 2) / 3.
If SetDatalog fails to allocate space, I believe the previous datalog is left
intact. But I could be wrong about that.
-Kekoa
|
|
Message is in Reply To:
| | Re: DATALOG and C
|
| (...) I see your point about UploadDatalog, as the tower falls asleep and the PC won't hear the RCX shouting. But SetDatalog seems to work in a program just fine, to set the size of the datalog buffer. BTW, what is the maximum size for the datalog, (...) (26 years ago, 25-Jan-99, to lugnet.robotics)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|