added compass offset parameter