Skip to content

Commit

Permalink
adding cosmos project
Browse files Browse the repository at this point in the history
  • Loading branch information
acien101 committed Jul 26, 2018
1 parent 13a1dc7 commit 590d6c0
Show file tree
Hide file tree
Showing 239 changed files with 13,512 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CCSDS_APRS_TCP/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# encoding: ascii-8bit

source 'https://rubygems.org'

gem 'ruby-termios', '~> 0.9' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw|cygwin/i and RUBY_ENGINE=='ruby'
if ENV['COSMOS_DEVEL']
gem 'cosmos', :path => ENV['COSMOS_DEVEL']
else
gem 'cosmos'
end

# Uncomment this line to add DART dependencies to your main Gemfile
# instance_eval File.read(File.join(__dir__, 'config/dart/Gemfile'))
54 changes: 54 additions & 0 deletions CCSDS_APRS_TCP/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
GEM
remote: https://rubygems.org/
specs:
coderay (1.1.2)
cosmos (4.2.4)
bundler (~> 1.3)
httpclient (~> 2.8)
json (>= 1.5, < 3)
nokogiri (~> 1.6)
opengl-bindings (~> 1.6)
pry (~> 0.9)
pry-doc (~> 0.5)
puma (~> 3.10)
qtbindings (~> 4.8.6, >= 4.8.6.2)
rack (~> 2.0)
rake (>= 10.0)
rdoc (>= 4)
rubyzip (~> 1.2)
snmp (~> 1.0)
uuidtools (~> 2.1)
yard (~> 0.9.11)
httpclient (2.8.3)
json (2.1.0)
method_source (0.9.0)
mini_portile2 (2.3.0)
nokogiri (1.8.3)
mini_portile2 (~> 2.3.0)
opengl-bindings (1.6.6)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-doc (0.13.4)
pry (~> 0.11)
yard (~> 0.9.11)
puma (3.11.4)
qtbindings (4.8.6.5)
rack (2.0.5)
rake (12.3.1)
rdoc (6.0.4)
ruby-termios (0.9.6)
rubyzip (1.2.1)
snmp (1.2.0)
uuidtools (2.1.5)
yard (0.9.14)

PLATFORMS
ruby

DEPENDENCIES
cosmos
ruby-termios (~> 0.9)

BUNDLED WITH
1.16.2
16 changes: 16 additions & 0 deletions CCSDS_APRS_TCP/Launcher
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env ruby
# encoding: ascii-8bit

# Copyright 2014 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt

require_relative 'tools/tool_launch'
tool_launch do
require 'cosmos/tools/launcher/launcher'
Cosmos::Launcher.run
end
9 changes: 9 additions & 0 deletions CCSDS_APRS_TCP/Launcher.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@ECHO OFF

IF NOT EXIST %~dp0tools\ToolLaunch.bat (
echo %~dp0tools\ToolLaunch.bat does not exist
pause
exit /b
)

call %~dp0tools\ToolLaunch.bat rubyw.exe %~n0 %*
81 changes: 81 additions & 0 deletions CCSDS_APRS_TCP/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# encoding: ascii-8bit

# Copyright 2014 Ball Aerospace & Technologies Corp.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 3 with
# attribution addendums as found in the LICENSE.txt

require 'cosmos'
if ENV['DART_USERNAME']
require 'cosmos/dart/config/application'
Rails.application.load_tasks
end

def create_crc_file(official)
count = 0
ignore = [
# Add filenames here if you don't want them to be CRCed
"tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor",
"tools/mac/CmdSender.app/Contents/MacOS/CmdSender",
"tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer",
"tools/mac/DataViewer.app/Contents/MacOS/DataViewer",
"tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator",
"tools/mac/Launcher.app/Contents/MacOS/Launcher",
"tools/mac/LimitsMonitor.app/Contents/MacOS/LimitsMonitor",
"tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder",
"tools/mac/PacketViewer.app/Contents/MacOS/PacketViewer",
"tools/mac/Replay.app/Contents/MacOS/Replay",
"tools/mac/ScriptRunner.app/Contents/MacOS/ScriptRunner",
"tools/mac/TableManager.app/Contents/MacOS/TableManager",
"tools/mac/TestRunner.app/Contents/MacOS/TestRunner",
"tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor",
"tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher",
"tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer",
]
# Create the crc.txt file
crc = Cosmos::Crc32.new(Cosmos::Crc32::DEFAULT_POLY, Cosmos::Crc32::DEFAULT_SEED, true, false)
File.open("config/data/crc.txt",'w') do |file|
file.puts "USER_MODIFIED" unless official
Dir[File.join('lib','**','*')].each do |filename|
next if File.directory?(filename)
next if ignore.include?(filename)
file_data = File.open(filename, 'rb').read.gsub("\x0D\x0A", "\x0A")
file.puts "\"#{filename}\" #{sprintf("0x%08X", crc.calc(file_data))}"
count += 1
end
Dir[File.join('config','**','*')].each do |filename|
next if File.directory?(filename)
next if ignore.include?(filename)
next if File.basename(filename) == 'crc.txt'
file_data = File.open(filename, 'rb').read.gsub("\x0D\x0A", "\x0A")
file.puts "\"#{filename}\" #{sprintf("0x%08X", crc.calc(file_data))}"
count += 1
end
Dir[File.join('tools','**','*')].each do |filename|
next if File.directory?(filename)
next if ignore.include?(filename)
file_data = File.open(filename, 'rb').read.gsub("\x0D\x0A", "\x0A")
file.puts "\"#{filename}\" #{sprintf("0x%08X", crc.calc(file_data))}"
count += 1
end
Dir[File.join('procedures','**','*')].each do |filename|
next if File.directory?(filename)
next if ignore.include?(filename)
file_data = File.open(filename, 'rb').read.gsub("\x0D\x0A", "\x0A")
file.puts "\"#{filename}\" #{sprintf("0x%08X", crc.calc(file_data))}"
count += 1
end
end
puts "Created config/data/crc.txt with #{count} CRCs"
end

task :crc do
create_crc_file(false)
end

task :crc_official do
create_crc_file(true)
end
54 changes: 54 additions & 0 deletions CCSDS_APRS_TCP/config/dart/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
source 'https://rubygems.org'

git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use sqlite3 as the database for Active Record
# em 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Ryan added
gem 'rest-client' # For examples
gem 'childprocess'

if RUBY_ENGINE == 'ruby'
gem 'pg', '~> 1.0'
else
gem 'activerecord-jdbcpostgresql-adapter', :github => 'jruby/activerecord-jdbc-adapter'
end
1 change: 1 addition & 0 deletions CCSDS_APRS_TCP/config/data/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is here to make sure this folder is included in the release.
163 changes: 163 additions & 0 deletions CCSDS_APRS_TCP/config/data/crc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
"lib/user_version.rb" 0x8F282EE9
"config/targets/SYSTEM/target.txt" 0x07E82776
"config/targets/SYSTEM/cmd_tlm/meta_tlm.txt" 0x07CDABCB
"config/data/README.txt" 0x93B2C07E
"config/system/system.txt" 0xD95B7058
"config/tools/launcher/launcher.txt" 0x6A3047DB
"config/tools/table_manager/README.txt" 0x93B2C07E
"config/tools/tlm_viewer/tlm_viewer.txt" 0xD9071527
"config/tools/data_viewer/data_viewer.txt" 0xAEE0B7DF
"config/tools/test_runner/test_runner.txt" 0xD24409D2
"config/tools/tlm_extractor/README.txt" 0x93B2C07E
"config/tools/cmd_tlm_server/cmd_tlm_server.txt" 0x2A39E69F
"config/tools/tlm_grapher/README.txt" 0x93B2C07E
"config/tools/opengl_builder/README.txt" 0x93B2C07E
"config/tools/limits_monitor/README.txt" 0x93B2C07E
"config/tools/handbook_creator/templates/header.html.erb" 0x1E490C2A
"config/tools/handbook_creator/templates/command_toc.html.erb" 0x9159BCF9
"config/tools/handbook_creator/templates/footer.html.erb" 0x0E1F9800
"config/tools/handbook_creator/templates/overview.html.erb" 0xDC4DD2B8
"config/tools/handbook_creator/templates/command_packets.html.erb" 0x9897CA7A
"config/tools/handbook_creator/templates/limits_groups.html.erb" 0x40FDF34C
"config/tools/handbook_creator/templates/pdf_cover.html.erb" 0x7AAB9A42
"config/tools/handbook_creator/templates/telemetry_toc.html.erb" 0x610E3BC5
"config/tools/handbook_creator/templates/nav.html.erb" 0xDF65AAEA
"config/tools/handbook_creator/templates/title.html.erb" 0xBC66E2BC
"config/tools/handbook_creator/templates/telemetry_packets.html.erb" 0x44BD9695
"config/tools/handbook_creator/templates/pdf_footer.html.erb" 0xF0D3EB77
"config/tools/handbook_creator/templates/pdf_header.html.erb" 0x3020FEE1
"config/tools/handbook_creator/default_toc.xsl" 0x4122A040
"config/tools/handbook_creator/handbook_creator.txt" 0x64E4B5CC
"config/tools/script_runner/script_runner.txt" 0x1EECD803
"config/dart/Gemfile" 0x011A23A3
"tools/TlmExtractor.bat" 0x2B98E027
"tools/Launcher" 0xFD4E356C
"tools/CmdSequence" 0x4A13C82C
"tools/TlmViewer" 0xFE723189
"tools/CmdTlmServer" 0x4C7A4FCB
"tools/Dart" 0x19C73FBA
"tools/ScriptRunner" 0x20F38758
"tools/tool_launch.rb" 0x0BDB6696
"tools/LimitsMonitor" 0x04FD96D8
"tools/ConfigEditor.bat" 0x2B98E027
"tools/Replay.bat" 0x2B98E027
"tools/CmdExtractor.bat" 0x2B98E027
"tools/TlmViewer.bat" 0x2B98E027
"tools/DataViewer" 0x9D20734C
"tools/ScriptRunner.bat" 0x2B98E027
"tools/CmdTlmServer.bat" 0x2B98E027
"tools/Replay" 0xAC00D2AD
"tools/HandbookCreator.bat" 0x2B98E027
"tools/PacketViewer" 0xF23A40BB
"tools/ConfigEditor" 0xD1205371
"tools/TlmGrapher" 0x9464F502
"tools/DataViewer.bat" 0x2B98E027
"tools/LimitsMonitor.bat" 0x2B98E027
"tools/mac/TestRunner.app/Contents/Info.plist" 0x482B3BA5
"tools/mac/TestRunner.app/Contents/Resources/appIcon.icns" 0xC8D32D55
"tools/mac/TestRunner.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/TestRunner.app/Contents/MacOS/TestRunner.rb" 0x0B0E0B8B
"tools/mac/TestRunner.app/Contents/MacOS/main.sh" 0x5A8D958C
"tools/mac/CmdExtractor.app/Contents/Info.plist" 0x0E89084D
"tools/mac/CmdExtractor.app/Contents/Resources/appIcon.icns" 0x39862FA7
"tools/mac/CmdExtractor.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor.rb" 0x96E82AC3
"tools/mac/CmdExtractor.app/Contents/MacOS/main.sh" 0xEE3EC072
"tools/mac/TableManager.app/Contents/Info.plist" 0xF6A5877F
"tools/mac/TableManager.app/Contents/Resources/appIcon.icns" 0xEBF5074E
"tools/mac/TableManager.app/Contents/MacOS/TableManager.rb" 0x71F21C88
"tools/mac/TableManager.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/TableManager.app/Contents/MacOS/main.sh" 0x68092BA9
"tools/mac/LimitsMonitor.app/Contents/Info.plist" 0xAF650287
"tools/mac/LimitsMonitor.app/Contents/Resources/appIcon.icns" 0xC98BF799
"tools/mac/LimitsMonitor.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/LimitsMonitor.app/Contents/MacOS/LimitsMonitor.rb" 0x04FD96D8
"tools/mac/LimitsMonitor.app/Contents/MacOS/main.sh" 0xAAF1493C
"tools/mac/CmdTlmServer.app/Contents/Info.plist" 0x97E53674
"tools/mac/CmdTlmServer.app/Contents/Resources/appIcon.icns" 0x972CDCC6
"tools/mac/CmdTlmServer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/CmdTlmServer.app/Contents/MacOS/main.sh" 0x1F1443E6
"tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer.rb" 0x4C7A4FCB
"tools/mac/PacketViewer.app/Contents/Info.plist" 0x6934BF89
"tools/mac/PacketViewer.app/Contents/Resources/appIcon.icns" 0xDF373DAE
"tools/mac/PacketViewer.app/Contents/MacOS/PacketViewer.rb" 0xF23A40BB
"tools/mac/PacketViewer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/PacketViewer.app/Contents/MacOS/main.sh" 0x47F54F98
"tools/mac/CmdSender.app/Contents/Info.plist" 0x87039019
"tools/mac/CmdSender.app/Contents/Resources/appIcon.icns" 0xEC403A52
"tools/mac/CmdSender.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/CmdSender.app/Contents/MacOS/CmdSender.rb" 0x10346CF4
"tools/mac/CmdSender.app/Contents/MacOS/main.sh" 0x707CA873
"tools/mac/CmdSequence.app/Contents/Info.plist" 0xF9BF98AD
"tools/mac/CmdSequence.app/Contents/Resources/appIcon.icns" 0xF819EAD4
"tools/mac/CmdSequence.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/CmdSequence.app/Contents/MacOS/CmdSequence.rb" 0x4A13C82C
"tools/mac/CmdSequence.app/Contents/MacOS/main.sh" 0x11671716
"tools/mac/TlmViewer.app/Contents/Info.plist" 0x821041E0
"tools/mac/TlmViewer.app/Contents/Resources/appIcon.icns" 0x1CBA8EB3
"tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer.rb" 0xFE723189
"tools/mac/TlmViewer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/TlmViewer.app/Contents/MacOS/main.sh" 0xE2F1EAFE
"tools/mac/ScriptRunner.app/Contents/Info.plist" 0x1BC8C5E9
"tools/mac/ScriptRunner.app/Contents/Resources/appIcon.icns" 0x9246743E
"tools/mac/ScriptRunner.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/ScriptRunner.app/Contents/MacOS/ScriptRunner.rb" 0x20F38758
"tools/mac/ScriptRunner.app/Contents/MacOS/main.sh" 0xCE8AE11F
"tools/mac/OpenGLBuilder.app/Contents/Info.plist" 0x3C2E542D
"tools/mac/OpenGLBuilder.app/Contents/Resources/appIcon.icns" 0x8DDBD837
"tools/mac/OpenGLBuilder.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/OpenGLBuilder.app/Contents/MacOS/main.sh" 0xAD05D35B
"tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder.rb" 0x585EA691
"tools/mac/Replay.app/Contents/Info.plist" 0x894AC4CF
"tools/mac/Replay.app/Contents/Resources/appIcon.icns" 0x0E6B32E5
"tools/mac/Replay.app/Contents/MacOS/Replay.rb" 0xAC00D2AD
"tools/mac/Replay.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/Replay.app/Contents/MacOS/main.sh" 0x42370A6F
"tools/mac/TlmExtractor.app/Contents/Info.plist" 0x343784F4
"tools/mac/TlmExtractor.app/Contents/Resources/appIcon.icns" 0x0AC88876
"tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor.rb" 0x1EC4639A
"tools/mac/TlmExtractor.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/TlmExtractor.app/Contents/MacOS/main.sh" 0x348F7440
"tools/mac/HandbookCreator.app/Contents/Info.plist" 0x7591A548
"tools/mac/HandbookCreator.app/Contents/Resources/appIcon.icns" 0xCEA7C465
"tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator.rb" 0xD927814C
"tools/mac/HandbookCreator.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/HandbookCreator.app/Contents/MacOS/main.sh" 0x358F92E1
"tools/mac/Launcher.app/Contents/Info.plist" 0x32A1EF14
"tools/mac/Launcher.app/Contents/Resources/appIcon.icns" 0x8857CD2B
"tools/mac/Launcher.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/Launcher.app/Contents/MacOS/main.sh" 0x0B32DAE8
"tools/mac/Launcher.app/Contents/MacOS/Launcher.rb" 0xFD4E356C
"tools/mac/ConfigEditor.app/Contents/Info.plist" 0x5E9C6081
"tools/mac/ConfigEditor.app/Contents/Resources/appIcon.icns" 0xD9774799
"tools/mac/ConfigEditor.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/ConfigEditor.app/Contents/MacOS/main.sh" 0x7C087C20
"tools/mac/ConfigEditor.app/Contents/MacOS/ConfigEditor.rb" 0xD1205371
"tools/mac/TlmGrapher.app/Contents/Info.plist" 0x3623B978
"tools/mac/TlmGrapher.app/Contents/Resources/appIcon.icns" 0xCA324F50
"tools/mac/TlmGrapher.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/TlmGrapher.app/Contents/MacOS/main.sh" 0x7BE28DE6
"tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher.rb" 0x9464F502
"tools/mac/DataViewer.app/Contents/Info.plist" 0xB79CA16B
"tools/mac/DataViewer.app/Contents/Resources/appIcon.icns" 0x3EC9B207
"tools/mac/DataViewer.app/Contents/MacOS/DataViewer.rb" 0x9D20734C
"tools/mac/DataViewer.app/Contents/MacOS/tool_launch.rb" 0x0BDB6696
"tools/mac/DataViewer.app/Contents/MacOS/main.sh" 0xD40D9D6C
"tools/TableManager.bat" 0x2B98E027
"tools/HandbookCreator" 0xD927814C
"tools/TestRunner.bat" 0x2B98E027
"tools/CmdSender" 0x10346CF4
"tools/Dart.bat" 0x357107FB
"tools/OpenGLBuilder.bat" 0x2B98E027
"tools/TableManager" 0x71F21C88
"tools/CmdSequence.bat" 0x2B98E027
"tools/TestRunner" 0x0B0E0B8B
"tools/TlmGrapher.bat" 0x2B98E027
"tools/TlmExtractor" 0x1EC4639A
"tools/PacketViewer.bat" 0x2B98E027
"tools/Launcher.bat" 0x2B98E027
"tools/ToolLaunch.bat" 0x4E6549E0
"tools/CmdExtractor" 0x96E82AC3
"tools/OpenGLBuilder" 0x585EA691
"tools/CmdSender.bat" 0x2B98E027
"procedures/README.txt" 0x93B2C07E
Loading

0 comments on commit 590d6c0

Please sign in to comment.