SITL: SF45B: increase resolution to 1 degree

The mode filter tends to squish a lot of data if we don't get this
correct.
This commit is contained in:
Peter Barker 2021-02-04 15:48:04 +11:00 committed by Peter Barker
parent 83417c1df7
commit 514dfa4b71
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ void PS_LightWare_SF45B::update_output_scan(const Location &location)
const uint32_t samples_per_second = 1000;
const float samples_per_ms = samples_per_second / 1000.0f;
const uint32_t sample_count = time_delta / samples_per_ms;
const float degrees_per_ms = 3600 / 1000.0f;
const float degrees_per_ms = 1000 / 1000.0f; // Randy reports 1 degree increments
const float degrees_per_sample = degrees_per_ms / samples_per_ms;
// ::fprintf(stderr, "Packing %u samples in for %ums interval (%f degrees/sample)\n", sample_count, time_delta, degrees_per_sample);