MccMount is now inheritor of MccFiniteStateMachine

This commit is contained in:
2025-06-09 22:58:58 +03:00
parent 47413792e5
commit 172d38f5e2
3 changed files with 43 additions and 168 deletions

View File

@@ -0,0 +1,29 @@
#pragma once
/* MOUNT CONTROL COMPONENTS LIBRARY */
/*
* BASIC EVENTS AND MOUNT STATES DEFINITIONS
*/
#include "mount.h"
namespace mcc
{
template <MccMountType MOUNT_TYPE,
std::derived_from<MccMountConfig> CONFIG_TYPE,
std::derived_from<MccMount<MOUNT_TYPE, CONFIG_TYPE>> MountT>
struct MccMountInitEvent {
static constexpr std::string_view ID = "MCC-MOUNT-INIT-EVENT";
MccMountInitEvent(MountT& mount) : _mount(mount) {}
MountT mount() const { return _mount; }
private:
MountT& _mount;
};
} // namespace mcc