import IcarusParser from '@cansat-icarus/capture-lib/src/icarus/data-handler/parser.js'Member Summary
| Private Members | ||
| private |
_raw: * |
|
Method Summary
| Public Methods | ||
| public |
Implementation of Parser#parse. |
|
Inherited Summary
| From class Parser | ||
| public |
Raw packet byte endianess (Little Endian (LE) for the Arduino). |
|
| public |
Parsed output container. |
|
| protected |
Current position in the packet being parsed. |
|
| protected |
Current packet being parsed. |
|
| public |
Parses a packet. |
|
| public |
readBoolean(key: String, converter: Function): Boolean Reads a boolean. |
|
| public |
Reads a char. |
|
| public |
Reads a 32-bit float. |
|
| public |
Reads a signed integer of 1-6 bytes. |
|
| public |
Reads an unsigned integer of 1-6 bytes. |
|
| public |
The value setter called by read* helper functions. |
|
Private Members
Public Methods
public parse(rawPacket: Buffer): Object source
Implementation of Parser#parse. Automatically decodes the quasi-binary packet with decode. Supports telemetry, info and settings packets. Also converts sensor values to standard units and attaches text representations of module names and messages.
Override:
Parser#parseParams:
| Name | Type | Attribute | Description |
| rawPacket | Buffer | Packet to parse. |