Class: Spektrum::Log::FlightLogRecord
- Defined in:
- lib/spektrum/log/records.rb
Instance Attribute Summary
Attributes inherited from Record
Instance Method Summary collapse
-
#initialize(timestamp, raw_data) ⇒ FlightLogRecord
constructor
A new instance of FlightLogRecord.
-
#rx_voltage ⇒ Float
Gets the receiver pack voltage data.
-
#rx_voltage? ⇒ Boolean
Determines if there is receiver voltage data contained within.
Methods inherited from Record
#raw_hex_string, #type, #valid?
Constructor Details
#initialize(timestamp, raw_data) ⇒ FlightLogRecord
Returns a new instance of FlightLogRecord.
131 132 133 |
# File 'lib/spektrum/log/records.rb', line 131 def initialize(, raw_data) super , raw_data end |
Instance Method Details
#rx_voltage ⇒ Float
Note:
This conversion has been verified via Spektrum STi
Gets the receiver pack voltage data.
139 140 141 |
# File 'lib/spektrum/log/records.rb', line 139 def rx_voltage raw_rx_voltage / 100.0 end |
#rx_voltage? ⇒ Boolean
Determines if there is receiver voltage data contained within.
146 147 148 |
# File 'lib/spektrum/log/records.rb', line 146 def rx_voltage? raw_rx_voltage != 0x7FFF end |