mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
MPI
This commit is contained in:
20
main/LoopManager.cpp
Normal file
20
main/LoopManager.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by Johnathon Slightham on 2025-07-05.
|
||||
//
|
||||
|
||||
#include "LoopManager.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <MessagingInterface.h>
|
||||
|
||||
void LoopManager::control_loop() {
|
||||
const auto messaging_interface = std::make_unique<MessagingInterface>();
|
||||
|
||||
char buffer[512];
|
||||
while (true) {
|
||||
messaging_interface->recv(buffer, 512, 0, 1);
|
||||
std::cout << buffer << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user