Class: MAVLink::Log::Messages::SysStatus
Instance Method Summary
collapse
#crc, #id, #initialize
Instance Method Details
#battery_remaining ⇒ Object
0%..100% (-1: not measured)
33
34
35
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 33
def battery_remaining
@battery_remaining ||= uint8_t(18)
end
|
#current_battery ⇒ Object
28
29
30
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 28
def current_battery
@load ||= (int16_t(16..17) / 100.0)
end
|
#drop_rate_comm ⇒ Object
0%..100% (bad packet %age)
38
39
40
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 38
def drop_rate_comm
@drop_rate_comm ||= (uint16_t(19..20) / 100)
end
|
#errors_comm ⇒ Object
42
43
44
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 42
def errors_comm
@errors_comm ||= uint16_t(21..22)
end
|
#errors_count1 ⇒ Object
46
47
48
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 46
def errors_count1
@errors_count1 ||= uint16_t(23..24)
end
|
#errors_count2 ⇒ Object
50
51
52
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 50
def errors_count2
@errors_count2 ||= uint16_t(25..26)
end
|
#errors_count3 ⇒ Object
54
55
56
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 54
def errors_count3
@errors_count3 ||= uint16_t(27..28)
end
|
#errors_count4 ⇒ Object
58
59
60
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 58
def errors_count4
@errors_count4 ||= uint16_t(29..30)
end
|
#load ⇒ Object
18
19
20
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 18
def load
@load ||= (uint16_t(12..13) / 10.0)
end
|
#onboard_control_sensors_enabled ⇒ Object
9
10
11
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 9
def onboard_control_sensors_enabled
@onboard_control_sensors_enabled ||= uint32_t(4..7)
end
|
#onboard_control_sensors_health ⇒ Object
13
14
15
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 13
def onboard_control_sensors_health
@onboard_control_sensors_health ||= uint32_t(8..11)
end
|
#onboard_control_sensors_present ⇒ Object
5
6
7
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 5
def onboard_control_sensors_present
@onboard_control_sensors_present ||= uint32_t(0..3)
end
|
#voltage_battery ⇒ Object
23
24
25
|
# File 'lib/mavlink/log/messages/sys_status.rb', line 23
def voltage_battery
@load ||= (uint16_t(14..15) / 1000.0)
end
|