Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

What does variable RR do in the standard template?

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
2 postsPage 1 of 1
2 postsPage 1 of 1

What does variable RR do in the standard template?

Post by stuuk » Mon May 05, 2008 11:19 pm

Post by stuuk
Mon May 05, 2008 11:19 pm

Hi All

I don't understand what the variable RR does in the standard template.

It is declared as a byte, and only ever assigned the value of 0

It is obviously something to do with the remote but no other value other than 0 is ever written to it so all the code around this seems redundent to me.

Am I missing something?

Thanks

Stu
Hi All

I don't understand what the variable RR does in the standard template.

It is declared as a byte, and only ever assigned the value of 0

It is obviously something to do with the remote but no other value other than 0 is ever written to it so all the code around this seems redundent to me.

Am I missing something?

Thanks

Stu
stuuk
Savvy Roboteer
Savvy Roboteer
Posts: 44
Joined: Sun Apr 27, 2008 8:34 pm

Post by i-Bot » Mon May 05, 2008 11:38 pm

Post by i-Bot
Mon May 05, 2008 11:38 pm

The significance of RR is that it is the first defined variable and sits at the bottom of the variables RAM.

If a serial character is received over the serial cable, the character is placed in this first variable location provided it is less than &H80, Values higher than &H80 are used for communicating between PC and C3024.

There are a few errors now found in this document, but it shows the principle.

http://web.ukonline.co.uk/r.ibbotson/fi ... Serial.pdf

Typically bluetooth is used instead on the ETX and ERX, so the RR code can be removed of not used.

I tend keep the first variable unused, since it can be overwritten in this way.
The significance of RR is that it is the first defined variable and sits at the bottom of the variables RAM.

If a serial character is received over the serial cable, the character is placed in this first variable location provided it is less than &H80, Values higher than &H80 are used for communicating between PC and C3024.

There are a few errors now found in this document, but it shows the principle.

http://web.ukonline.co.uk/r.ibbotson/fi ... Serial.pdf

Typically bluetooth is used instead on the ETX and ERX, so the RR code can be removed of not used.

I tend keep the first variable unused, since it can be overwritten in this way.
i-Bot
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1142
Joined: Wed May 17, 2006 1:00 am


2 postsPage 1 of 1
2 postsPage 1 of 1