mirror of
https://github.com/BotChain-Robots/control.git
synced 2026-03-10 00:32:26 +01:00
Formatting, add remote calling to c library
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include <chrono>
|
||||
#include <iostream>
|
||||
#include <format>
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
|
||||
#include "libcontrol.h"
|
||||
@@ -16,16 +16,16 @@ int main() {
|
||||
|
||||
std::cout << "Found " << controller->getModules().size() << " modules" << std::endl;
|
||||
|
||||
for (const auto& maybe_module : controller->getModules()) {
|
||||
if (const auto& module = maybe_module.lock()) {
|
||||
for (const auto &maybe_module : controller->getModules()) {
|
||||
if (const auto &module = maybe_module.lock()) {
|
||||
std::cout << "Found module " << (int)module->get_device_id();
|
||||
|
||||
if (module->get_type() == ModuleType_DISPLAY) {
|
||||
module->actuate(std::format("BotChain \n\n\nModule ID: {}", module->get_device_id()));
|
||||
module->actuate(
|
||||
std::format("BotChain \n\n\nModule ID: {}", module->get_device_id()));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user