openc3-cosmos-init/plugins/packages/openc3-cosmos-demo/targets/INST/lib/sim_inst.rb
Method read
has 140 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def read(count_100hz, time)
pending_packets = get_pending_packets(count_100hz)
pending_packets.each do |packet|
case packet.packet_name
Method initialize
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(target_name)
super(target_name)
@target = System.targets[target_name]
position_filename = File.join(@target.dir, 'data', 'position.bin')
Method write
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def write(packet)
name = packet.packet_name.upcase
hs_packet = @tlm_packets['HEALTH_STATUS']
params_packet = @tlm_packets['PARAMS']