11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/mavlink/log/messages/factory.rb', line 11
def self.build(entry)
case(entry..id)
when 0; HeartBeat.new(entry)
when 1; SysStatus.new(entry)
when 21; ParamRequestList.new(entry)
when 22; ParamValue.new(entry)
when 24; GpsRawInt.new(entry)
when 27; RawImu.new(entry)
when 29; ScaledPressure.new(entry)
when 30; Attitude.new(entry)
when 33; GlobalPositionInt.new(entry)
when 35; RcChannelsRaw.new(entry)
when 36; ServoOutputRaw.new(entry)
when 39; MissionItem.new(entry)
when 40; MissionRequest.new(entry)
when 42; MissionCurrent.new(entry)
when 62; NavControllerOutput.new(entry)
when 66; RequestDataStream.new(entry)
when 74; VfrHud.new(entry)
when 150..240; Dummy.new(entry)
when 253; StatusText.new(entry)
else
puts entry..inspect
nil
end
end
|