17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 15:47:30 +01:00

pch migration to modules [wip]

This commit is contained in:
maj00r
2026-09-09 20:35:26 +02:00
parent c3007e3237
commit 3f7960aad5
350 changed files with 5958 additions and 3059 deletions

View File

@@ -0,0 +1,41 @@
module;
#include <string>
#include <chrono>
export module eu07.utilities.motiontelemetry;
import eu07.glm;
export {
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();
};
} // export