#include #include GpsDhbDummy::GpsDhbDummy(object_id_t objectId, object_id_t comif, CookieIF *comCookie) : DeviceHandlerBase(objectId, comif, comCookie) {} GpsDhbDummy::~GpsDhbDummy() {} void GpsDhbDummy::doStartUp() {} void GpsDhbDummy::doShutDown() {} ReturnValue_t GpsDhbDummy::buildNormalDeviceCommand(DeviceCommandId_t *id) { return NOTHING_TO_SEND; } ReturnValue_t GpsDhbDummy::buildTransitionDeviceCommand(DeviceCommandId_t *id) { return NOTHING_TO_SEND; } ReturnValue_t GpsDhbDummy::buildCommandFromCommand(DeviceCommandId_t deviceCommand, const uint8_t *commandData, size_t commandDataLen) { return returnvalue::OK; } ReturnValue_t GpsDhbDummy::scanForReply(const uint8_t *start, size_t len, DeviceCommandId_t *foundId, size_t *foundLen) { return returnvalue::OK; } ReturnValue_t GpsDhbDummy::interpretDeviceReply(DeviceCommandId_t id, const uint8_t *packet) { return returnvalue::OK; } void GpsDhbDummy::fillCommandAndReplyMap() {} uint32_t GpsDhbDummy::getTransitionDelayMs(Mode_t modeFrom, Mode_t modeTo) { return 500; } ReturnValue_t GpsDhbDummy::initializeLocalDataPool(localpool::DataPool &localDataPoolMap, LocalDataPoolManager &poolManager) { localDataPoolMap.emplace(GpsHyperion::LATITUDE, new PoolEntry({0.0}, 1)); localDataPoolMap.emplace(GpsHyperion::LONGITUDE, new PoolEntry({0.0}, 1)); localDataPoolMap.emplace(GpsHyperion::ALTITUDE, new PoolEntry({0.0})); localDataPoolMap.emplace(GpsHyperion::SPEED, new PoolEntry({7684.2})); localDataPoolMap.emplace(GpsHyperion::FIX_MODE, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::SATS_IN_USE, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::SATS_IN_VIEW, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::YEAR, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::MONTH, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::DAY, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::HOURS, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::MINUTES, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::SECONDS, new PoolEntry({0})); localDataPoolMap.emplace(GpsHyperion::UNIX_SECONDS, new PoolEntry({0})); return returnvalue::OK; }