• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mavlink / MAVSDK / 14827628259

05 May 2025 02:02AM UTC coverage: 44.06% (-0.2%) from 44.223%
14827628259

push

github

web-flow
Merge pull request #2559 from Luc-Meunier/vehicle-type

core: expose Vehicle type

0 of 120 new or added lines in 3 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

14619 of 33180 relevant lines covered (44.06%)

281.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/src/mavsdk/core/system.cpp
1
#include "system.h"
2
#include "mavsdk_impl.h"
3
#include "system_impl.h"
4
#include "plugin_impl_base.h"
5
#include <functional>
6
#include <utility>
7
#include "px4_custom_mode.h"
8

9
// Set to 1 to log incoming/outgoing mavlink messages.
10
#define MESSAGE_DEBUGGING 0
11

12
namespace mavsdk {
13

14
System::System(MavsdkImpl& parent) : _system_impl(std::make_shared<SystemImpl>(parent)) {}
86✔
15

16
System::~System() = default;
86✔
17

18
void System::init(uint8_t system_id, uint8_t component_id) const
86✔
19
{
20
    return _system_impl->init(system_id, component_id);
86✔
21
}
22

23
bool System::is_standalone() const
×
24
{
25
    return _system_impl->is_standalone();
×
26
}
27

28
bool System::has_autopilot() const
66✔
29
{
30
    return _system_impl->has_autopilot();
66✔
31
}
32

33
bool System::has_camera(int camera_id) const
9✔
34
{
35
    return _system_impl->has_camera(camera_id);
9✔
36
}
37

38
bool System::has_gimbal() const
×
39
{
40
    return _system_impl->has_gimbal();
×
41
}
42

43
bool System::is_connected() const
44✔
44
{
45
    return _system_impl->is_connected();
44✔
46
}
47

48
uint8_t System::get_system_id() const
×
49
{
50
    return _system_impl->get_system_id();
×
51
}
52

53
std::vector<uint8_t> System::component_ids() const
×
54
{
55
    return _system_impl->component_ids();
×
56
}
57

58
System::IsConnectedHandle System::subscribe_is_connected(const IsConnectedCallback& callback)
×
59
{
60
    return _system_impl->subscribe_is_connected(callback);
×
61
}
62

63
void System::unsubscribe_is_connected(IsConnectedHandle handle)
×
64
{
65
    _system_impl->unsubscribe_is_connected(handle);
×
66
}
×
67

68
System::ComponentDiscoveredHandle
69
System::subscribe_component_discovered(const ComponentDiscoveredCallback& callback)
×
70
{
71
    return _system_impl->subscribe_component_discovered(callback);
×
72
}
73

74
void System::unsubscribe_component_discovered(System::ComponentDiscoveredHandle handle)
×
75
{
76
    _system_impl->unsubscribe_component_discovered(handle);
×
77
}
×
78

79
System::ComponentDiscoveredIdHandle
80
System::subscribe_component_discovered_id(const ComponentDiscoveredIdCallback& callback)
×
81
{
82
    return _system_impl->subscribe_component_discovered_id(callback);
×
83
}
84

85
void System::unsubscribe_component_discovered_id(System::ComponentDiscoveredIdHandle handle)
×
86
{
87
    _system_impl->unsubscribe_component_discovered_id(handle);
×
88
}
×
89

90
void System::enable_timesync()
×
91
{
92
    _system_impl->enable_timesync();
×
93
}
×
94

95
Autopilot System::autopilot_type() const
×
96
{
97
    return _system_impl->autopilot();
×
98
}
99

NEW
100
Vehicle System::vehicle_type() const
×
101
{
NEW
102
    return _system_impl->vehicle();
×
103
}
104

105
} // namespace mavsdk
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc