Skip to content

Commit

Permalink
Updated test board to match new board.h
Browse files Browse the repository at this point in the history
  • Loading branch information
avtoku committed Aug 28, 2024
1 parent 7686749 commit 7cc03a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions test/test_board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ uint8_t testBoard::serial_read() { return 0; }
void testBoard::serial_flush() {}

// sensors
void testBoard::sensors_init() {}
uint16_t testBoard::num_sensor_errors() { return 0; }
void testBoard::sensors_init() {};
uint16_t testBoard::sensors_errors_count() {return 0;}
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_has_new_data()
{
Expand Down
5 changes: 4 additions & 1 deletion test/test_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ class testBoard : public Board

// sensors
void sensors_init() override;
uint16_t num_sensor_errors() override;
uint16_t sensors_errors_count() override;
uint16_t sensors_init_message_count() override;
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_has_new_data() override;
bool imu_read(float accel[3], float * temperature, float gyro[3], uint64_t * time) override;
Expand Down

0 comments on commit 7cc03a5

Please sign in to comment.