Skip to content

Commit

Permalink
#641 Refactoring, removed forward declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
krichardsson committed Nov 10, 2020
1 parent 463110b commit 1236670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/modules/interface/stabilizer_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "imu_types.h"
#include "lighthouse_calibration.h"

/* Data structure used by the stabilizer subsystem.
* All have a timestamp to be set when the data is calculated.
Expand Down Expand Up @@ -245,8 +246,6 @@ typedef struct {
} yawErrorMeasurement_t;

/** Sweep angle measurement */
// Forward declaration of lighthouse struct to avoid dependency.
struct lighthouseCalibrationAxis_s;
typedef struct {
uint32_t timestamp;
vec3d* sensorPos; // Sensor position in the CF reference frame
Expand All @@ -257,7 +256,7 @@ typedef struct {
float measuredSweepAngle;
float stdDev;
int baseStationType; // Cast to lighthouseBaseStationType_t enum.
const struct lighthouseCalibrationAxis_s* calib;
const lighthouseCalibrationAxis_t* calib;
} sweepAngleMeasurement_t;

// Frequencies to bo used with the RATE_DO_EXECUTE_HZ macro. Do NOT use an arbitrary number.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/interface/lighthouse/lighthouse_calibration.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "ootx_decoder.h"

typedef struct lighthouseCalibrationAxis_s {
typedef struct {
float phase;
float tilt;
float curve;
Expand Down

0 comments on commit 1236670

Please sign in to comment.