~thomas-voss/location-service/make-trials-in-gps-test-configurable-and-output-test-summary

« back to all changes in this revision

Viewing changes to src/location_service/com/ubuntu/location/providers/remote/provider.cpp

  • Committer: CI bot
  • Author(s): Manuel de la Peña
  • Date: 2014-08-29 11:01:13 UTC
  • mfrom: (97.3.6 espoo-provider)
  • Revision ID: ps-jenkins@lists.canonical.com-20140829110113-rl38rjd9ii7438ij
Improve the accuracy reported by the remote provider. 
Approved by: Thomas Voß

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
 
124
124
void culpr::Provider::on_position_changed(const com::ubuntu::remote::RemoteInterface::Signals::PositionChanged::ArgumentType& arg)
125
125
{
126
 
    auto longitude = std::get<0>(arg);
127
 
    auto latitude = std::get<1>(arg);
128
 
    auto altitude = std::get<2>(arg);
129
 
    VLOG(10) << "New update received with longitude: " << longitude
130
 
        << "latitude: " << latitude << "altitude: " << altitude;
131
 
 
132
 
    cul::Position pos
133
 
    {
134
 
        cul::wgs84::Latitude{latitude* cul::units::Degrees},
135
 
        cul::wgs84::Longitude{longitude* cul::units::Degrees}
136
 
    };
137
 
 
138
 
    pos.altitude = cul::wgs84::Altitude{altitude* cul::units::Meters};
139
 
    cul::Update<cul::Position> update(pos);
140
 
    VLOG(10) << "Position updated added";
141
 
    mutable_updates().position(update);
 
126
    mutable_updates().position(arg);
142
127
}
143
128
 
144
129
bool culpr::Provider::matches_criteria(const cul::Criteria&)