CPSSD / robots

CA224 robotics project
4 stars 0 forks source link

Add compass to simulator #201

Closed cgmc closed 8 years ago

cgmc commented 8 years ago

To compensate for angle mirroring, the compass heading is returned as the physicalAngle value less 90 modulo 360.

The physical angle is also subject to error, when enabled.

Adjusted the value of angleSlip, to balance the effect of the degree of error on the heading and on the distance travelled.

Accounted for the implementation in C++ of the modulo function as a division remainder operation.

References #193, #164.