Asibfm700Mount is now MccGenericMount (not MccGenericFsmMount)
fix mount initialization (add EEPROM reading, assign correponded mount config items) rewrite computing distance to pzones in slewing mode (add braking aceleration) add more informative errors description for serialization (network protocol)
This commit is contained in:
@@ -827,6 +827,17 @@ public:
|
||||
MccGenericFsmMount(StartStateT start_state, MountCtorArgTs&&... mount_ctor_args)
|
||||
: MOUNT_T(std::forward<MountCtorArgTs>(mount_ctor_args)...), fsm::MccFiniteStateMachine(std::move(start_state))
|
||||
{
|
||||
if constexpr (mcc_generic_log_mount_c<MOUNT_T>) {
|
||||
this->logDebug(std::format("Create MccGenericFsmMount class instance ({})", this->getThreadId()));
|
||||
this->logDebug("MccGenericFsmMount finite-state machine states:");
|
||||
for (auto& el : stateIDs()) {
|
||||
this->logDebug(std::format(" {}", el));
|
||||
}
|
||||
this->logDebug("MccGenericFsmMount finite-state machine events:");
|
||||
for (auto& el : eventIDs()) {
|
||||
this->logDebug(std::format(" {}", el));
|
||||
}
|
||||
}
|
||||
}
|
||||
// template <fsm::traits::fsm_state_c ERROR_STATE_T = MccGenericFsmMountErrorState>
|
||||
// MccGenericFsmMount(MOUNT_T mount,
|
||||
@@ -835,6 +846,19 @@ public:
|
||||
// {
|
||||
// }
|
||||
|
||||
MccGenericFsmMount(MccGenericFsmMount&&) = default;
|
||||
MccGenericFsmMount(const MccGenericFsmMount&) = delete;
|
||||
|
||||
MccGenericFsmMount& operator=(MccGenericFsmMount&&) = default;
|
||||
MccGenericFsmMount& operator=(const MccGenericFsmMount&) = delete;
|
||||
|
||||
virtual ~MccGenericFsmMount()
|
||||
{
|
||||
if constexpr (mcc_generic_log_mount_c<MOUNT_T>) {
|
||||
this->logDebug(std::format("Delete MccGenericFsmMount class instance ({})", this->getThreadId()));
|
||||
}
|
||||
}
|
||||
|
||||
// reimplementation of base-class methods to adapt it to FSM-behavior
|
||||
|
||||
error_t initMount()
|
||||
|
||||
Reference in New Issue
Block a user