Arcade Drive

Hi. I need help writing an Arcade drive control. My input device would be my iPod, and I have it set up with the gyro. That part works, and it sends out 0-180 on each axis. X goes from 0 (left) to 180 (right), and y goes from 0 (tilted back) and 180 (tilted away). I have two Vex motors that go from 0-180. 0 is backwards, 180 is forwards.

Hopefully this will be enough info. I have searched Google a bit, and I didn't find very much useful, but I did find this: but that didn't help me.

I think I can get it working with this code:

I would just have to modify the values a bit.