Skip to content

Commit 01a4cff

Browse files
committed
fix CI
1 parent 3bdec39 commit 01a4cff

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/lint_python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ jobs:
44
lint_python:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-python@v2
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-python@v4
99
with:
10-
python-version: '3.10.1'
10+
python-version: '3.10.12'
1111
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety
1212
- run: bandit --recursive --skip B101 .
1313
- run: black --check . || true
14-
- run: codespell # --ignore-words-list="" --skip=""
14+
- run: codespell --ignore-words-list= Bu
1515
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
1616
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --show-source --statistics
1717
- run: isort --check-only --profile black . || true

autotune/data_extractor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ def printCppArrays(t_aligned, u_aligned, y_aligned):
202202
description='Extract identification data from a give .ulg file')
203203

204204
parser.add_argument('logfile', help='Full ulog file path, name and extension', type=str)
205-
parser.add_argument('--axis', dest='axis', choices=['x', 'y', 'z'], help='the body axis on interest')
206205
args = parser.parse_args()
207206

208207
logfile = os.path.abspath(args.logfile) # Convert to absolute path
209-
axis = {'x':0, 'y':1, 'z':2}[args.axis]
210208

211-
(t_aligned, u_aligned, y_aligned, v_aligned) = getInputOutputData(logfile, axis, instance=0)
209+
x_field_def = FieldDefinition("vehicle_torque_setpoint", "xyz[0]", 0)
210+
y_field_def = FieldDefinition("vehicle_angular_velocity", "xyz[0]", 0)
211+
(t_aligned, u_aligned, y_aligned, v_aligned) = DataExtractor(logfile).getInputOutputData(x_field_def, y_field_def)
212212
printCppArrays(t_aligned, u_aligned, y_aligned)

quaternion_attitude_control/quaternion_attitude_control_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def plotrotc(q = Quaternion(), p = (0,0,0)):
5252
q: [optional] body attitude quaternion. Defaults to level.
5353
p: [optional] 3D body position in space Defaults to origin.
5454
"""
55-
# convert the quaternion to a rotation metrix because the columns are the base vectors
55+
# convert the quaternion to a rotation matrix because the columns are the base vectors
5656
R = q.rotation_matrix
5757
# plot unit vectors from the body position into the 3 base vector directions
5858
ay.quiver(*p, *R[:,0], color='red')
@@ -241,4 +241,4 @@ def vtoq(src = np.array([0,0,1]), dst = np.array([0,0,1]), eps = 1e-5):
241241
steps += 1
242242
print(steps, '\t', p)
243243

244-
plt.show()
244+
plt.show()

0 commit comments

Comments
 (0)