Class: OrientationQuaternion

OSH.DataReceiver.OrientationQuaternion

This datasource provides parsing to Orientation Quaternion.
Data: ISODATE,Qx,Qy,Qz,Qw.

Constructor

new OrientationQuaternion()

Source:

Methods

parseData($super, data) → {Object}

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

  • qx: tokens[1]
  • qy: tokens [2]
  • qz: tokens[3]
  • qw: tokens[4]

.

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