SpaceWire is the standard data transfer and network interface which is standardized as ECSS-E-ST-50-12C lead by the European Space Agency (ESA). RMAP is a short for Remote Memory Access Protocol which is the standardized data transfer protocol over SpaceWire (ECSS-E-ST-50-52C).
The open-source SpaceWire codec, SpaceWire Router, RMAP Target IP cores that have been developed by Masaharu Nomachi, Takayuki Yuasa, and Shimafuji Electric are available from the following urls.
Now users can use basic SpaceWire and RMAP functionalities of the library in the Ruby scripting language. Scripting capability allows developers to quickly iterate try-and-error loops on, for example, new SpaceWire device without compiling a test program.
The SWIG wrapper is already included in the Github repository of SpaceWire RMAP Library, and existing users can pull it by executing:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
<script src="raphael-min.js"></script> | |
<script src="flowchart-latest.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Calculates the Fermi energy and temperature of a typical white dwarf star. | |
require "ruby-dimensional-standard" | |
require "ruby-dimensional-physics" | |
#define constants | |
G=Physics::Constant::GravitationalConstant | |
Msun=Physics::Constant::Msun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# This script dumps data contained in a FITS Table HDU into a CSV file using RubyFits. | |
# Usage: | |
# ruby conver_fits_to_csv.rb FITS_FILE | |
# Output: | |
# - Header: FITS_FILE_n_header_HDU_NAME | |
# - Data : FITS_FILE_n_data_HDU_NAME | |
# (n is HDU index) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "RubyROOT" | |
include Root | |
include RootApp | |
inputFile="histogram_sample.data" | |
outputPDFFile="histogram_sample.pdf" | |
#create an instance of histogram | |
hist=TH1D.create("hist","Histogram",512,0,512) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Before running this program, execute the following initialization command: | |
* > gpio load spi | |
* | |
* Expected result: | |
* > pi@raspberrypi:~$ ./read_mcp3208 | |
* | |
* wiringPiSPISetup status = 3 | |
* wiringPiSPIDataRW status = 3 | |
* data[0]=00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------------------------- | |
# CMakeLists.txt for sllib | |
#--------------------------------------------- | |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4) | |
SET(CMAKE_C_FLAGS_RELEASE "-Wall -O3") | |
SET(CMAKE_C_FLAGS_DEBUG "-g") | |
SET(CMAKE_BUILD_TYPE Release) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------------------------- | |
# CMakeLists.txt for sfitsio | |
#--------------------------------------------- | |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4) | |
SET(CMAKE_C_FLAGS_RELEASE "-Wall -O3") | |
SET(CMAKE_C_FLAGS_DEBUG "-g") | |
SET(CMAKE_BUILD_TYPE Release) |