Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::communication::JankyFloat Class Reference

#include <janky_float.hpp>

Static Public Member Functions

static coolSerial::Bytes serialize (float f)
 
static float deserialize (coolSerial::Bytes bytes)
 

Static Public Attributes

static const coolSerial::Bytes kHeaderSection {0x89, 0x0, 0x4, 0xff, 0xa7}
 

Detailed Description

This was developed to have a simple protocol to test with

Member Function Documentation

◆ deserialize()

float fang::communication::JankyFloat::deserialize ( coolSerial::Bytes  bytes)
static

Returns the associated float

◆ serialize()

coolSerial::Bytes fang::communication::JankyFloat::serialize ( float  f)
static

Returns the msb bytes

Member Data Documentation

◆ kHeaderSection

const coolSerial::Bytes fang::communication::JankyFloat::kHeaderSection {0x89, 0x0, 0x4, 0xff, 0xa7}
static

The documentation for this class was generated from the following files: