Skip to content

Commit

Permalink
Forgot to add imu present function
Browse files Browse the repository at this point in the history
  • Loading branch information
avtoku committed Aug 28, 2024
1 parent 7cc03a5 commit ee78729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ uint16_t testBoard::sensors_init_message_count() {return 0;}
uint16_t testBoard::sensors_init_message(char * message, uint16_t size, uint16_t i) {return 0;}
bool testBoard::sensors_init_message_good(uint16_t i) {return false;}

bool testBoard::imu_present() {return false;}

bool testBoard::imu_has_new_data()
{
if (new_imu_) {
Expand Down
1 change: 1 addition & 0 deletions test/test_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class testBoard : public Board
uint16_t sensors_init_message(char * message, uint16_t size, uint16_t i) override;
bool sensors_init_message_good(uint16_t i) override;

bool imu_present() override;
bool imu_has_new_data() override;
bool imu_read(float accel[3], float * temperature, float gyro[3], uint64_t * time) override;
void imu_not_responding_error() override;
Expand Down

0 comments on commit ee78729

Please sign in to comment.