CodeSubWars 0.4.7b
CodeSubWars::CSWGyroCompass Class Reference

#include <CSWGyroCompass.h>

Inheritance diagram for CodeSubWars::CSWGyroCompass:

Public Member Functions

const Vector3D & getForwardDirection () const
 
const Vector3D & getUpDirection () const
 
double getInclination ()
 
double getDirection ()
 
double getAxialInclination ()
 
- Public Member Functions inherited from CodeSubWars::CSWEquipment
bool isMoving () const
 
- Public Member Functions inherited from CodeSubWars::CSWObject
const std::string & getName () const
 

Detailed Description

This class provides Compass like functionality.

Member Function Documentation

◆ getAxialInclination()

double CodeSubWars::CSWGyroCompass::getAxialInclination ( )

Returns the absolute axial inclination of the sensor in degree [-180, 180]. (turret from left to right) (rotation about z)

◆ getDirection()

double CodeSubWars::CSWGyroCompass::getDirection ( )

Returns the absolute rotation of the sensor in degree [0, 360]. (nose from left to right) (rotation about y)

◆ getForwardDirection()

const Vector3D & CodeSubWars::CSWGyroCompass::getForwardDirection ( ) const

Returns the forward direction in world coordinates.

◆ getInclination()

double CodeSubWars::CSWGyroCompass::getInclination ( )

Returns the absolute inclination of the sensor in degree [-90, 90]. (nose from down to up) (rotation about x)

◆ getUpDirection()

const Vector3D & CodeSubWars::CSWGyroCompass::getUpDirection ( ) const

Returns the up direction in world coordinates.


Generated at Sun Aug 7 2022 for project CodeSubWars. www.codesubwars.org