diff --git a/bin_delivery/.gitignore b/bin_delivery/.gitignore deleted file mode 100644 index bb575c1f6b48a1e8465cc06d2c08664cc2393487..0000000000000000000000000000000000000000 --- a/bin_delivery/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!*.bin \ No newline at end of file diff --git a/data/airbrakes/coeffs_euroc.mat b/data/airbrakes/coeffs_euroc.mat deleted file mode 100644 index 388c4c3f8894aa046a00d42478612d0a3b846963..0000000000000000000000000000000000000000 Binary files a/data/airbrakes/coeffs_euroc.mat and /dev/null differ diff --git a/data/airbrakes/coeffs_roccaraso.mat b/data/airbrakes/coeffs_roccaraso.mat deleted file mode 100644 index d8bacf3589f3ed901674e19398c072ca04ebbf03..0000000000000000000000000000000000000000 Binary files a/data/airbrakes/coeffs_roccaraso.mat and /dev/null differ diff --git a/data/airbrakes/trajectories_euroc.mat b/data/airbrakes/trajectories_euroc.mat deleted file mode 100644 index 807329c0b6e862c3dca297e59343cafb7cc8f898..0000000000000000000000000000000000000000 Binary files a/data/airbrakes/trajectories_euroc.mat and /dev/null differ diff --git a/data/airbrakes/trajectories_roccaraso.mat b/data/airbrakes/trajectories_roccaraso.mat deleted file mode 100644 index 103a4eea617760358f279a5eddf2e49a95ffce73..0000000000000000000000000000000000000000 Binary files a/data/airbrakes/trajectories_roccaraso.mat and /dev/null differ diff --git a/scripts/airbrakes/coeffs.py b/scripts/airbrakes/coeffs.py deleted file mode 100644 index e9a2dfb1c98239e37423789a81e9c68867483d7c..0000000000000000000000000000000000000000 --- a/scripts/airbrakes/coeffs.py +++ /dev/null @@ -1,24 +0,0 @@ -import scipy.io as sio -import sys - -#filename = "coeffs.mat" -fieldname = "coeffs" - -if len(sys.argv) < 2: - print("\nError, missing path to file") - print("Usage : python3 coeffs.py <path_to_mat_file>\n") - -mat = sio.loadmat(sys.argv[1]) - -data = mat[fieldname][0][0] -names = data.dtype.fields.keys() - -coeffs = {} - -for coeff, name in zip(data, names): - coeffs[name] = coeff.item() - -print("struct Coefficients\n{") -for name in coeffs: # coeff name = dict key - print("\tfloat " + name + " = " + str(coeffs[name]) + ";") -print("};") diff --git a/scripts/airbrakes/trajectories.py b/scripts/airbrakes/trajectories.py deleted file mode 100644 index 2a67e171e33e08d3af0b142f9cf183d4101b26fa..0000000000000000000000000000000000000000 --- a/scripts/airbrakes/trajectories.py +++ /dev/null @@ -1,63 +0,0 @@ -import scipy.io as sio -import sys - -#filename = "Trajectories.mat" -outfilename = "Trajectories.h" -fieldname = "trajectories_saving" - -if len(sys.argv) < 2: - print("\nError, missing path to file") - print("Usage : python3 coeffs.py <path_to_mat_file>\n") - -outfilename = sys.argv[1].replace(".mat", "") + ".h" # use same name as input file - -mat = sio.loadmat(sys.argv[1]) -trajectories = mat[fieldname][0] - -with open(outfilename, "w") as f: - - num_trajectories = len(trajectories) - max_trajectory_len = 0 - trajectory_index = 0 - output_string = "" - - for trajectory in trajectories: - zs, vzs, xs, vxs, ys, vys = trajectory - - for i in range(0, len(zs)): - if zs[i] >= 0: # find first non negative altitude - break - - # exctract only non negative altitude elements - zs = zs[i:] - vzs = vzs[i:] - - if (len(zs) != len(vzs)): - print("ERROR : z and vz don't have the same number of elements in trajectory " + str(trajectory_index)) - - # check length of first column for each trajectory - if len(zs) > max_trajectory_len: - max_trajectory_len = len(zs) - - # output trajectory to file - output_string += "\t{\n" - output_string += "\t\t%d, \n\t\t{\n" % (len(zs)) - for z, vz in zip(zs, vzs): - output_string += "\t\t\t{%f, %f},\n" % (z, vz) - output_string += "\t\t}\n\t},\n" - - trajectory_index += 1 - - output_string += "};" - - # after the preprocessing, output max trajectories length - s = "static const unsigned int TOT_TRAJECTORIES = " + str(num_trajectories) + ";\n" - s += "static const unsigned int TRAJECTORY_MAX_LENGTH = " + str(max_trajectory_len) + ";\n\n" - s += "const trajectory_t TRAJECTORIES_DATA[TOT_TRAJECTORIES] = {\n" - - # final string to be output to file - output_string = s + output_string - - f.write(output_string) - -print("\nFile " + outfilename + " written") diff --git a/scripts/flash-calibration-entry.sh b/scripts/flash-calibration-entry.sh deleted file mode 100755 index bb1f0be533070e1d68d6c47f20ce6f27cf42c4a6..0000000000000000000000000000000000000000 --- a/scripts/flash-calibration-entry.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -st-flash --reset write bin_delivery/lynx/final/calibration-entry.bin 0x8000000 diff --git a/scripts/flash-entry-hil.sh b/scripts/flash-entry-hil.sh deleted file mode 100755 index a8434dfa5ada84b2f6538f55230f6003722e757f..0000000000000000000000000000000000000000 --- a/scripts/flash-entry-hil.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -st-flash --reset write bin_delivery/lynx/final/death-stack-x-hil-entry.bin 0x8000000 diff --git a/scripts/flash-entry.sh b/scripts/flash-entry.sh deleted file mode 100755 index 1149c2a6ef4ea8ca7e18b04bf8b1b131fbddede2..0000000000000000000000000000000000000000 --- a/scripts/flash-entry.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -st-flash --reset write bin_delivery/lynx/final/death-stack-x-entry.bin 0x8000000 diff --git a/scripts/flash-ramtest.sh b/scripts/flash-ramtest.sh deleted file mode 100755 index 136960675209075b50fffbff10fe9655349417d9..0000000000000000000000000000000000000000 --- a/scripts/flash-ramtest.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -st-flash --reset write bin_delivery/lynx/final/ramtest.bin 0x8000000 diff --git a/scripts/flash-testsuite.sh b/scripts/flash-testsuite.sh deleted file mode 100755 index bed7c3eb23cb0added97f832409035942ec6a58e..0000000000000000000000000000000000000000 --- a/scripts/flash-testsuite.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -st-flash --reset write bin_delivery/lynx/final/death-stack-x-testsuite.bin 0x8000000 diff --git a/scripts/linter.sh b/scripts/linter.sh deleted file mode 100755 index f0b2eac4f3a6e8628c1abe05506886fe2b7fc572..0000000000000000000000000000000000000000 --- a/scripts/linter.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -DIRNAME="$(dirname $0)" -$DIRNAME/../skyward-boardcore/scripts/linter.sh $DIRNAME/../src/boards \ No newline at end of file diff --git a/scripts/scxml2plant.sh b/scripts/scxml2plant.sh deleted file mode 100755 index 7a4d5a9cd20a8837ae09f940ff8b382d171ffee0..0000000000000000000000000000000000000000 --- a/scripts/scxml2plant.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -DIRNAME="$(dirname $0)" -$DIRNAME/../skyward-boardcore/scripts/scxml2plant/scxml2plant.sh $DIRNAME/../src/boards \ No newline at end of file diff --git a/scripts/vscodesetup.sh b/scripts/vscodesetup.sh deleted file mode 100755 index 6b515971bef104982d79dc960fd3cd756ae265bb..0000000000000000000000000000000000000000 --- a/scripts/vscodesetup.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2021 Skyward Experimental Rocketry -# Authors: Alberto Nidasio -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -# Copies the directory ide/vscode to .vscode - -cp -r ide/vscode .vscode \ No newline at end of file