added gps definitions file

This commit is contained in:
Robin Müller 2021-06-15 17:07:47 +02:00
parent 78cb72d12d
commit 236244bbb4
No known key found for this signature in database
GPG Key ID: 9C287E88FED11DF3
3 changed files with 26 additions and 3 deletions

@ -1 +1 @@
Subproject commit 4f825a10cd886dd3b1814bbb952f657da45fd961 Subproject commit c0287eb4a64ec92a3f068a88c7090d3eae0f5e99

View File

@ -1,4 +1,5 @@
#include "GPSHandler.h" #include "GPSHandler.h"
#include "devicedefinitions/GPSDefinitions.h"
GPSHandler::GPSHandler(object_id_t objectId, object_id_t deviceCommunication, GPSHandler::GPSHandler(object_id_t objectId, object_id_t deviceCommunication,
CookieIF *comCookie): CookieIF *comCookie):
@ -62,9 +63,10 @@ ReturnValue_t GPSHandler::initializeLocalDataPool(
} }
void GPSHandler::fillCommandAndReplyMap() { void GPSHandler::fillCommandAndReplyMap() {
// Reply length does not matter, packets should always arrive periodically
insertInReplyMap(GpsHyperion::GPS_REPLY, 4, nullptr, 0, true);
} }
void GPSHandler::modeChanged() { void GPSHandler::modeChanged() {
internalState = InternalStates::NONE;
} }

View File

@ -0,0 +1,21 @@
#ifndef MISSION_DEVICES_DEVICEDEFINITIONS_GPSDEFINITIONS_H_
#define MISSION_DEVICES_DEVICEDEFINITIONS_GPSDEFINITIONS_H_
#include <fsfw/devicehandlers/DeviceHandlerIF.h>
namespace GpsHyperion {
static constexpr DeviceCommandId_t GPS_REPLY = 0;
enum GpsPoolIds: lp_id_t {
};
}
class GpsPrimaryDataset: public StaticLocalDataSet<5> {
public:
private:
};
#endif /* MISSION_DEVICES_DEVICEDEFINITIONS_GPSDEFINITIONS_H_ */