Skip to content

Commit

Permalink
AP_Compass: remove unused set_last_update_usec method
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Jul 3, 2024
1 parent 8f4d4bf commit 0e03d6b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions libraries/AP_Compass/AP_Compass_Backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,6 @@ void AP_Compass_Backend::publish_filtered_field(const Vector3f &mag, uint8_t ins
state.last_update_usec = AP_HAL::micros();
}

void AP_Compass_Backend::set_last_update_usec(uint32_t last_update, uint8_t instance)
{
Compass::mag_state &state = _compass._state[Compass::StateIndex(instance)];
state.last_update_usec = last_update;
}

/*
register a new backend with frontend, returning instance which
should be used in publish_field()
Expand Down
1 change: 0 additions & 1 deletion libraries/AP_Compass/AP_Compass_Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class AP_Compass_Backend
void publish_raw_field(const Vector3f &mag, uint8_t instance);
void correct_field(Vector3f &mag, uint8_t i);
void publish_filtered_field(const Vector3f &mag, uint8_t instance);
void set_last_update_usec(uint32_t last_update, uint8_t instance);

void accumulate_sample(Vector3f &field, uint8_t instance,
uint32_t max_samples = 10);
Expand Down

0 comments on commit 0e03d6b

Please sign in to comment.