AP_DAL: removed use of BUILD macros in headers

fixes sempahore build
This commit is contained in:
Andrew Tridgell 2020-11-08 09:31:09 +11:00
parent 5be818f8a1
commit 7a8e8b8b51
9 changed files with 1 additions and 21 deletions

View File

@ -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:
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:
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;

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:
void handle_message(const log_RGPJ &msg) {
_RGPJ[msg.instance] = msg;
}
#endif
private:

View File

@ -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:
pos[msg.instance] = AP::ins().get_imu_pos_offset(msg.instance);
update_filtered(msg.instance);
}
#endif
private:
// filter constant for deltas to gyro/accel

View File

@ -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:

View File

@ -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: