Class: Crubyflie::LogConf

Inherits:
Object
  • Object
show all
Defined in:
lib/crubyflie/crazyflie/log_conf.rb

Overview

Interface for Logging configuration objects

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variables, data_callback, opts = {}) ⇒ LogConf

Returns a new instance of LogConf.



24
25
26
27
28
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 24

def initialize(variables, data_callback, opts={})
    @variables = variables
    @data_callback = data_callback
    @period = opts[:period] || 20
end

Instance Attribute Details

#data_callbackObject (readonly)

Returns the value of attribute data_callback.



23
24
25
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 23

def data_callback
  @data_callback
end

#periodObject (readonly)

Returns the value of attribute period.



23
24
25
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 23

def period
  @period
end

#variablesObject (readonly)

Returns the value of attribute variables.



23
24
25
# File 'lib/crubyflie/crazyflie/log_conf.rb', line 23

def variables
  @variables
end