Fixed bug with sensors and signs in coordinate conversion functions.