~thomas-voss/location-service/add-snapcraft-setup-next

« back to all changes in this revision

Viewing changes to src/location/non_selecting_provider_selection_policy.cpp

Merge lp:~thomas-voss/location-service/simplify-provider-interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
#include <location/non_selecting_provider_selection_policy.h>
20
 
#include <location/fusion_provider.h>
21
 
#include <location/newer_update_selector.h>
 
20
#include <location/providers/proxy.h>
22
21
 
23
22
#include <set>
24
23
 
33
32
        bag.insert(provider);
34
33
    });
35
34
 
36
 
    auto bag_of_providers = std::make_shared<FusionProvider>(bag, std::make_shared<NewerUpdateSelector>());
 
35
    auto proxy = std::make_shared<providers::Proxy>(bag);
37
36
 
38
37
    // Our bag of providers is responsible for delivering position/heading/velocity updates.
39
38
    return location::ProviderSelection
40
39
    {
41
 
        bag_of_providers, // position
42
 
        bag_of_providers, // heading
43
 
        bag_of_providers  // velocity
 
40
        proxy, // position
 
41
        proxy, // heading
 
42
        proxy  // velocity
44
43
    };
45
44
}