Atom pro Floating point Tables

Hi everyone. I’m using the Atom Pro with the BRAT and as usual not every servo is fined tuned perfectly. I’m making a table of constants that my program will refer to in order to see how many degrees it needs to compensate for. The table uses decimals so I obviously need to make it a FloatTable. Whenever I try to compile it the IDE gives me a warning saying that it will convert FLOAT to INTEGER. Is there something I’m doing wrong? Here’s my code:

Thanks!

Tyis line:

debug [dec servoAdj(2)] 

is probably whats causing the warning. You are using the DEC modifier(which takes integers) with a floating point value(servoAdj(2)) so the compiler is converting it to an integer. You need to use the REAL modifier in your debug statement if you don’t want your floats converted to integers. Same would apply if you are using other commands that take modifiers.

Convert this line.

debug [dec servoAdj(2)] 

To this.

debug [sdec servoAdj(2)] 

Then it should display properly (I think).

We are creating a tutorial for the BRAT with Bot Board II and Basic Atom Pro 28. James has created a program that allows you to find and display your servos offsets in the terminal window. Then they can be added (cut and paste) into our program that controls the bot autonomously. I will be updating the sticky in the Biped section with the offset program link and more information that you can use while we continue working on the full tutorial. The program has all of the sequences built into it, and it has an SSC-32 group move emulation that is transparent to the programmer, I mean it runs in the background. :wink: