PX4 / PX4-GPSDrivers

Platform independent GPS drivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong mapping when reading UBX-NAV-SAT messages

bedaberner opened this issue · comments

It seems like "used" gets assigned the wrong value.

_satellite_info->used[sat_index] = static_cast<uint8_t>(_buf.payload_rx_nav_svinfo_part2.flags & 0x01);

it checks bit 0 of the flags when according to the Interface Description (page 150/151) it should be bit 3.

You are correct, can you create a pull request to fix it?