35#ifndef _OPENLCB_TRACTIONTESTTRAIN_HXX_
36#define _OPENLCB_TRACTIONTESTTRAIN_HXX_
51 dcc::TrainAddressType::DCC_LONG_ADDRESS);
63 uint32_t legacyAddress_;
67 std::map<uint32_t, uint16_t> fnValues_;
Test train implementation that just logs every action to the info log.
dcc::TrainAddressType legacy_address_type() OVERRIDE
void set_emergencystop() OVERRIDE
Sets the train to emergency stop.
uint16_t get_fn(uint32_t address) OVERRIDE
void set_speed(SpeedType speed) OVERRIDE
Sets the speed of the locomotive.
void set_fn(uint32_t address, uint16_t value) OVERRIDE
Sets the value of a function.
bool get_emergencystop() OVERRIDE
Get the current E-Stop state.
SpeedType get_speed() OVERRIDE
uint32_t legacy_address() OVERRIDE
Abstract base class for train implementations.
This class provides a mechanism for working with velocity in different forms.
TrainAddressType
Which address type this legacy train node uses.
#define OVERRIDE
Function attribute for virtual functions declaring that this funciton is overriding a funciton that s...