Method: OpenC3::UnixTimeSecondsConversion#initialize

Defined in:
lib/openc3/conversions/unix_time_seconds_conversion.rb

#initialize(seconds_item_name, microseconds_item_name = nil) ⇒ UnixTimeSecondsConversion

Initializes converted_type to :FLOAT and converted_bit_size to 64

Parameters:

  • seconds_item_name (String)

    The telemetry item in the packet which represents the number of seconds since the UNIX time epoch

  • microseconds_item_name (String) (defaults to: nil)

    The telemetry item in the packet which represents microseconds



35
36
37
38
39
40
# File 'lib/openc3/conversions/unix_time_seconds_conversion.rb', line 35

def initialize(seconds_item_name, microseconds_item_name = nil)
  # @params is set by the parent class in super()
  super(seconds_item_name, microseconds_item_name)
  @converted_type = :FLOAT
  @converted_bit_size = 64
end