Browse Source

AP_DAL: removed use of BUILD macros in headers

fixes sempahore build
zr-v5.1
Andrew Tridgell 4 years ago
parent
commit
7a8e8b8b51
  1. 4
      libraries/AP_DAL/AP_DAL.h
  2. 2
      libraries/AP_DAL/AP_DAL_Airspeed.h
  3. 2
      libraries/AP_DAL/AP_DAL_Baro.h
  4. 4
      libraries/AP_DAL/AP_DAL_Beacon.h
  5. 2
      libraries/AP_DAL/AP_DAL_Compass.h
  6. 2
      libraries/AP_DAL/AP_DAL_GPS.h
  7. 2
      libraries/AP_DAL/AP_DAL_InertialSensor.h
  8. 2
      libraries/AP_DAL/AP_DAL_RangeFinder.h
  9. 2
      libraries/AP_DAL/AP_DAL_VisualOdom.h

4
libraries/AP_DAL/AP_DAL.h

@ -17,10 +17,8 @@ @@ -17,10 +17,8 @@
#define DAL_CORE(c) AP::dal().logging_core(c)
#if APM_BUILD_TYPE(APM_BUILD_Replay)
class NavEKF2;
class NavEKF3;
#endif
class AP_DAL {
public:
@ -222,7 +220,6 @@ public: @@ -222,7 +220,6 @@ public:
void writeBodyFrameOdom(float quality, const Vector3f &delPos, const Vector3f &delAng, float delTime, uint32_t timeStamp_ms, uint16_t delay_ms, const Vector3f &posOffset);
// Replay support:
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RFRH &msg) {
_RFRH = msg;
_micros = _RFRH.time_us;
@ -297,7 +294,6 @@ public: @@ -297,7 +294,6 @@ public:
void handle_message(const log_REVH &msg, NavEKF2 &ekf2, NavEKF3 &ekf3);
void handle_message(const log_RWOH &msg, NavEKF2 &ekf2, NavEKF3 &ekf3);
void handle_message(const log_RBOH &msg, NavEKF2 &ekf2, NavEKF3 &ekf3);
#endif
// map core number for replay
uint8_t logging_core(uint8_t c) const;

2
libraries/AP_DAL/AP_DAL_Airspeed.h

@ -47,14 +47,12 @@ public: @@ -47,14 +47,12 @@ public:
void start_frame();
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RASH &msg) {
_RASH = msg;
}
void handle_message(const log_RASI &msg) {
_RASI[msg.instance] = msg;
}
#endif
private:

2
libraries/AP_DAL/AP_DAL_Baro.h

@ -40,14 +40,12 @@ public: @@ -40,14 +40,12 @@ public:
void start_frame();
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RBRH &msg) {
_RBRH = msg;
}
void handle_message(const log_RBRI &msg) {
_RBRI[msg.instance] = msg;
}
#endif
private:

4
libraries/AP_DAL/AP_DAL_Beacon.h

@ -61,14 +61,12 @@ public: @@ -61,14 +61,12 @@ public:
void start_frame();
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RBCH &msg) {
_RBCH = msg;
}
}
void handle_message(const log_RBCI &msg) {
_RBCI[msg.instance] = msg;
}
#endif
private:

2
libraries/AP_DAL/AP_DAL_Compass.h

@ -58,14 +58,12 @@ public: @@ -58,14 +58,12 @@ public:
void start_frame();
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RMGH &msg) {
_RMGH = msg;
}
void handle_message(const log_RMGI &msg) {
_RMGI[msg.instance] = msg;
}
#endif
private:

2
libraries/AP_DAL/AP_DAL_GPS.h

@ -130,7 +130,6 @@ public: @@ -130,7 +130,6 @@ public:
void start_frame();
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RGPH &msg) {
_RGPH = msg;
}
@ -140,7 +139,6 @@ public: @@ -140,7 +139,6 @@ public:
void handle_message(const log_RGPJ &msg) {
_RGPJ[msg.instance] = msg;
}
#endif
private:

2
libraries/AP_DAL/AP_DAL_InertialSensor.h

@ -53,7 +53,6 @@ public: @@ -53,7 +53,6 @@ public:
void start_frame();
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RISH &msg) {
_RISH = msg;
}
@ -62,7 +61,6 @@ public: @@ -62,7 +61,6 @@ public:
pos[msg.instance] = AP::ins().get_imu_pos_offset(msg.instance);
update_filtered(msg.instance);
}
#endif
private:
// filter constant for deltas to gyro/accel

2
libraries/AP_DAL/AP_DAL_RangeFinder.h

@ -30,14 +30,12 @@ public: @@ -30,14 +30,12 @@ public:
class AP_DAL_RangeFinder_Backend *get_backend(uint8_t id) const;
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RRNH &msg) {
_RRNH = msg;
}
void handle_message(const log_RRNI &msg) {
_RRNI[msg.instance] = msg;
}
#endif
private:

2
libraries/AP_DAL/AP_DAL_VisualOdom.h

@ -38,11 +38,9 @@ public: @@ -38,11 +38,9 @@ public:
void start_frame();
#if APM_BUILD_TYPE(APM_BUILD_Replay)
void handle_message(const log_RVOH &msg) {
RVOH = msg;
}
#endif
private:

Loading…
Cancel
Save