pass subframes_map by refer (#1640)

pull/1644/head
Dean Lee 5 years ago committed by GitHub
parent c7ff6dd194
commit 5f58307153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/locationd/ublox_msg.cc

@ -39,7 +39,7 @@ inline int GET_FIELD_S(uint32_t w, uint32_t nb, uint32_t pos) {
class EphemerisData {
public:
EphemerisData(uint8_t svId, subframes_map subframes) {
EphemerisData(uint8_t svId, subframes_map &subframes) {
this->svId = svId;
int week_no = GET_FIELD_U(subframes[1][2+0], 10, 20);
int t_gd = GET_FIELD_S(subframes[1][2+4], 8, 6);

Loading…
Cancel
Save