Class: MAVLink::Log::Messages::SysStatus

Inherits:
MAVLink::Log::Message show all
Defined in:
lib/mavlink/log/messages/sys_status.rb

Instance Method Summary collapse

Methods inherited from MAVLink::Log::Message

#crc, #id, #initialize

Constructor Details

This class inherits a constructor from MAVLink::Log::Message

Instance Method Details

#battery_remainingObject

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_batteryObject

A (-1: not measured)



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_commObject

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_commObject



42
43
44
# File 'lib/mavlink/log/messages/sys_status.rb', line 42

def errors_comm
  @errors_comm ||= uint16_t(21..22)
end

#errors_count1Object



46
47
48
# File 'lib/mavlink/log/messages/sys_status.rb', line 46

def errors_count1
  @errors_count1 ||= uint16_t(23..24)
end

#errors_count2Object



50
51
52
# File 'lib/mavlink/log/messages/sys_status.rb', line 50

def errors_count2
  @errors_count2 ||= uint16_t(25..26)
end

#errors_count3Object



54
55
56
# File 'lib/mavlink/log/messages/sys_status.rb', line 54

def errors_count3
  @errors_count3 ||= uint16_t(27..28)
end

#errors_count4Object



58
59
60
# File 'lib/mavlink/log/messages/sys_status.rb', line 58

def errors_count4
  @errors_count4 ||= uint16_t(29..30)
end

#loadObject

0%..100%



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_enabledObject



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_healthObject



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_presentObject



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_batteryObject

V



23
24
25
# File 'lib/mavlink/log/messages/sys_status.rb', line 23

def voltage_battery
  @load ||= (uint16_t(14..15) / 1000.0)
end