chrisshortys,
You can get the angle with the formula provided by aratti. However, you are going to need PBP version 6.0 for that. If you don't have v6.0, then depending on the accuracy that you want you can use a LOOKUP table.
About your second questions, do a search in this forum for ADCIN and you will find several treads that will answer your question.
aratti,ATN2 ((v-v0)/SQR((v1-v0)^2 - (v-v0) ^2))
should give you your angle (I don't remember if in degrees or in radiants)
I believe the angle is given in binary radians, 0 to 255, that would be the equivalent to 0 to 360 degrees.
Robert
Bookmarks