21 lines
499 B
C++
21 lines
499 B
C++
#include <spdlog/sinks/stdout_color_sinks.h>
|
|
|
|
#include "../mcc_mount.h"
|
|
#include "../mcc_mount_events_states.h"
|
|
|
|
int tests_mount(int, char**)
|
|
{
|
|
using namespace mcc;
|
|
|
|
using mount_t = MccMount<MccMountConfig<MccMountType::CROSSAXIS_TYPE>, MccMountTelemetry>;
|
|
|
|
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;
|
|
}
|