mirror of
https://github.com/BotChain-Robots/control.git
synced 2026-03-09 16:22:26 +01:00
30 lines
693 B
C++
30 lines
693 B
C++
//
|
|
// Created by Johnathon Slightham on 2025-06-30.
|
|
//
|
|
|
|
#ifndef ANGLECONTROLMESSAGEBUILDER_H_
|
|
#define ANGLECONTROLMESSAGEBUILDER_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "SerializedMessage.h"
|
|
#include "flatbuffers/flatbuffers.h"
|
|
#include "flatbuffers_generated/AngleControlMessage_generated.h"
|
|
|
|
namespace Flatbuffers {
|
|
class AngleControlMessageBuilder {
|
|
public:
|
|
AngleControlMessageBuilder() : builder_(256) {
|
|
}
|
|
|
|
SerializedMessage build_angle_control_message(int16_t angle);
|
|
static const Messaging::AngleControlMessage *parse_angle_control_message(const uint8_t *buffer);
|
|
|
|
private:
|
|
flatbuffers::FlatBufferBuilder builder_;
|
|
};
|
|
} // namespace Flatbuffers
|
|
|
|
#endif
|