2020-12-22 00:32:11 +01:00
|
|
|
#include "GPSHandler.h"
|
|
|
|
|
|
|
|
GPSHandler::GPSHandler(object_id_t objectId, object_id_t deviceCommunication,
|
|
|
|
CookieIF *comCookie):
|
|
|
|
DeviceHandlerBase(objectId, deviceCommunication, comCookie) {
|
|
|
|
}
|
|
|
|
|
|
|
|
GPSHandler::~GPSHandler() {}
|
|
|
|
|
|
|
|
void GPSHandler::doStartUp() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void GPSHandler::doShutDown() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GPSHandler::buildTransitionDeviceCommand(DeviceCommandId_t *id) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GPSHandler::buildNormalDeviceCommand(DeviceCommandId_t *id) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GPSHandler::buildCommandFromCommand(
|
|
|
|
DeviceCommandId_t deviceCommand, const uint8_t *commandData,
|
|
|
|
size_t commandDataLen) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GPSHandler::scanForReply(const uint8_t *start, size_t len,
|
|
|
|
DeviceCommandId_t *foundId, size_t *foundLen) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GPSHandler::interpretDeviceReply(DeviceCommandId_t id,
|
|
|
|
const uint8_t *packet) {
|
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t GPSHandler::getTransitionDelayMs(Mode_t from, Mode_t to) {
|
|
|
|
return 5000;
|
|
|
|
}
|
|
|
|
|
|
|
|
ReturnValue_t GPSHandler::initializeLocalDataPool(
|
2021-01-14 11:37:32 +01:00
|
|
|
localpool::DataPool &localDataPoolMap, LocalDataPoolManager &poolManager) {
|
2020-12-22 00:32:11 +01:00
|
|
|
return HasReturnvaluesIF::RETURN_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
void GPSHandler::fillCommandAndReplyMap() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void GPSHandler::modeChanged() {
|
|
|
|
|
|
|
|
}
|