Welcome to Px4LogReader
Px4LogReader is a Ruby gem for parsing PX4 © self-describing log files.
Install the gem
Install it with RubyGems
gem install px4_log_reader
or add this to your Gemfile if you use Bundler:
gem "px4_log_reader"
Getting Started
Example: Read PX4 log file
require 'px4_log_reader'
Px4LogReader.open( 'a_test_log.px4log' ) do |reader|
reader.( { with: [ 'ATT' ] } ) do |,context|
att = [ .get('Roll'), .get('Pitch'), .get('Yaw') ]
puts "ATT( @ #{context.find_by_name('GPS').get('GPSTime')} ): roll=#{att[0]}, pitch=#{att[1]}, yaw=#{att[2]}"
end
end
License and copyright
Px4LogReader is released under the BSD License.
Copyright: © 2016 by Robert Glissmann. All Rights Reserved.
"PX4" is a copyright of PX4 Autopilot (aka PX4 Dev Team). All Rights Reserved.