Help please, I'm about to give up

Thanks for the reply i copied the code from the above blog. Im very new to all of this so its a very steep learning curve for me.

What your saying seems logical but i have no idea on how to write the code for that. I did change the "1" to a "0" in the bottom line of code and it made the disjointed box allot more stable.

pitch = ((int)float(list[0]));
roll = ((int)float(list[1]));