Constructor
new OrientationQuaternion()
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 |
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 |
Returns:
the extracted timestamp
- Type
- number