Sha256: caf195cfaf8cf4fdf030f7e57787bdf042f68e6f14a9b779faf2d4cbc5c37f48

Contents?: true

Size: 710 Bytes

Versions: 61

Compression:

Stored size: 710 Bytes

Contents

# TBL_FILENAME is set to the name of the table file
puts "file:#{ENV['TBL_FILENAME']}"
# Open the file
file = get_target_file(ENV['TBL_FILENAME'])
buffer = file.read
# puts buffer.formatted
# Implement custom commanding logic to upload the table
# Note that buffer is a Ruby string of bytes
# You probably want to do something like:
# buf_size = 512 # Size of a buffer in the upload command
# i = 0
# while i < buffer.length
#   # Send a part of the buffer
#   # NOTE: triple dots means start index, up to but not including, end index
#   #   while double dots means start index, up to AND including, end index
#   cmd("TGT", "UPLOAD", "DATA" => buffer[i...(i + buf_size)])
#   i += buf_size
# end
file.delete

Version data entries

61 entries across 59 versions & 4 rubygems

Version Path
openc3-cosmos-demo-5.12.0 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.11.3 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.11.2 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.11.1 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.11.0 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.10.1 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.10.0 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.9.1 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.9.0 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.8.1 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.8.0 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.7.2 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.7.0 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.6.1 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.6.0 targets/INST/tables/procedures/upload.rb
openc3-cosmos-fakesat-1.0.7 targets/FAKESAT/tables/procedures/upload.rb
openc3-cosmos-demo-5.5.2 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.5.2.pre.beta0.20230315041141 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.5.1 targets/INST/tables/procedures/upload.rb
openc3-cosmos-demo-5.5.0 targets/INST/tables/procedures/upload.rb