16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 17:29:18 +02:00

Reorganize source files into logical subdirectories

Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-14 19:01:57 +00:00
parent f981f81d55
commit 0531086bb9
221 changed files with 131 additions and 108 deletions

View File

@@ -0,0 +1,34 @@
#pragma once
#include <string>
#include <chrono>
class motiontelemetry
{
public:
struct conf_t
{
bool enable;
std::string proto;
std::string address;
std::string port;
float updatetime;
bool includegravity;
bool fwdposbased;
bool latposbased;
float axlebumpscale;
};
private:
int sock;
std::chrono::time_point<std::chrono::high_resolution_clock> last_update;
conf_t conf;
glm::dvec3 last_pos;
glm::dvec3 last_vel;
double last_yaw;
public:
motiontelemetry();
~motiontelemetry();
void update();
};