Class: EulerOrientation

OSH.DataReceiver.EulerOrientation

This datasource provides parsing to euler orientation.
Data has to be under the format : ISODATE,X,Y,

Constructor

new EulerOrientation()

Source:

Methods

parseData($super, data) → {Object}

Extract data from the message. The data are got such as:

  • yaw: tokens[1]
  • pitch: tokens [2]
  • roll: tokens[3]

.

Parameters:
Name Type Description
$super function

the parseData super method

data Object

the data to parse

Source:
Returns:

the parsed data

Type
Object
Example
<p>{<br>  pitch:10,<br>  roll: 11,<br>  heading:12<br>}</p>

parseTimeStamp($super, data) → {number}

Extracts timestamp from the message. The timestamp is the first token got from split(',')

Parameters:
Name Type Description
$super function

the parseTimeStamp super method

data string

the data to parse

Source:
Returns:

the extracted timestamp

Type
number