mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
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:
parent
83417c1df7
commit
514dfa4b71
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user