This commit is contained in:
Timur A. Fatkhullin
2025-06-17 00:46:13 +03:00
parent 64a3544bd8
commit 02afd65d6f
5 changed files with 69 additions and 60 deletions

View File

@@ -1,3 +1,5 @@
#include <spdlog/sinks/stdout_color_sinks.h>
#include "../mcc_mount.h"
#include "../mcc_mount_events_states.h"
@@ -7,9 +9,12 @@ int tests_mount(int, char**)
using mount_t = MccMount<MccMountConfig<MccMountType::CROSSAXIS_TYPE>, MccMountTelemetry>;
mount_t mount(MccMountStateIDLE<mount_t>{});
auto logger = spdlog::stdout_color_mt("MOUNT");
logger->set_level(spdlog::level::debug);
mount_t mount(MccMountStateIDLE<mount_t>{}, logger);
mount.dispatchEvent(MccMountEventInit<mount_t>{mount});
return 0;
}