 |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
Go to the documentation of this file.
7 #define DATA_INPUT_SEMAPHORE "/mm_data_input_semaphore"
80 #define MAX_STATIONARY_BEACONS 30
88 #define MAX_BUFFERED_POSITIONS 3
130 CRITICAL_SECTION
lock_;
137 #define POSITION_DATAGRAM_ID 0x0001
138 #define BEACONS_POSITIONS_DATAGRAM_ID 0x0002
139 #define POSITION_DATAGRAM_HIGHRES_ID 0x0011
140 #define BEACONS_POSITIONS_DATAGRAM_HIGHRES_ID 0x0012
141 #define IMU_RAW_DATAGRAM_ID 0x0003
142 #define BEACON_RAW_DISTANCE_DATAGRAM_ID 0x0004
143 #define IMU_FUSION_DATAGRAM_ID 0x0005
177 #define DEFAULT_TTY_FILENAME "\\\\.\\COM3"
179 #define DEFAULT_TTY_FILENAME "/dev/ttyACM0"
struct StationaryBeaconsPositions positionsBeacons
void(* anyInputPacketCallback)()
struct FusionIMUValue fusionIMU
void destroyMarvelmindHedge(struct MarvelmindHedge *hedge)
void printRawDistancesFromMarvelmindHedge(struct MarvelmindHedge *hedge, bool onlyNew)
#define MAX_STATIONARY_BEACONS
struct MarvelmindHedge * createMarvelmindHedge()
struct RawDistances rawDistances
void printRawIMUFromMarvelmindHedge(struct MarvelmindHedge *hedge, bool onlyNew)
bool getRawIMUFromMarvelmindHedge(struct MarvelmindHedge *hedge, struct RawIMUValue *rawIMU)
bool getStationaryBeaconsPositionsFromMarvelmindHedge(struct MarvelmindHedge *hedge, struct StationaryBeaconsPositions *positions)
struct PositionValue * positionBuffer
void startMarvelmindHedge(struct MarvelmindHedge *hedge)
void printStationaryBeaconsPositionsFromMarvelmindHedge(struct MarvelmindHedge *hedge, bool onlyNew)
struct StationaryBeaconPosition beacons[MAX_STATIONARY_BEACONS]
struct RawDistanceItem distances[4]
void printPositionFromMarvelmindHedge(struct MarvelmindHedge *hedge, bool onlyNew)
struct RawIMUValue rawIMU
bool getFusionIMUFromMarvelmindHedge(struct MarvelmindHedge *hedge, struct FusionIMUValue *fusionIMU)
void stopMarvelmindHedge(struct MarvelmindHedge *hedge)
bool getRawDistancesFromMarvelmindHedge(struct MarvelmindHedge *hedge, struct RawDistances *rawDistances)
void(* receiveDataCallback)(struct PositionValue position)
void printFusionIMUFromMarvelmindHedge(struct MarvelmindHedge *hedge, bool onlyNew)
bool getPositionFromMarvelmindHedge(struct MarvelmindHedge *hedge, struct PositionValue *position)