Class: OpenC3::ReceivedCountConversion
- Inherits:
-
Conversion
- Object
- Conversion
- OpenC3::ReceivedCountConversion
- Defined in:
- lib/openc3/conversions/received_count_conversion.rb
Overview
Converts the packet received count as a derived telemetry item
Instance Attribute Summary
Attributes inherited from Conversion
#converted_array_size, #converted_bit_size, #converted_type
Instance Method Summary collapse
-
#call(value, packet, buffer) ⇒ Integer
Packet.received_count.
-
#initialize ⇒ ReceivedCountConversion
constructor
Initializes converted_type to :UINT and converted_bit_size to 32.
Methods inherited from Conversion
Constructor Details
#initialize ⇒ ReceivedCountConversion
Initializes converted_type to :UINT and converted_bit_size to 32
29 30 31 32 33 |
# File 'lib/openc3/conversions/received_count_conversion.rb', line 29 def initialize super() @converted_type = :UINT @converted_bit_size = 32 end |
Instance Method Details
#call(value, packet, buffer) ⇒ Integer
Returns packet.received_count.
37 38 39 |
# File 'lib/openc3/conversions/received_count_conversion.rb', line 37 def call(value, packet, buffer) packet.received_count end |