Commit 23d45594 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

fix test

parent d00bafe7
import numpy as np
from numpy.ctypeslib import ndpointer
import matplotlib.pyplot as plt
import ctypes as ct
import _ctypes
import os
from test.type2_dll_wrapper import Type2DllWrapper
# settings = np.zeros(100)
# for i, s in enumerate([9360000, # ; Fully deployed maximum brake torque [Nm] (0.6*max torque)
# 100, # ; Parameter alpha used in Q = tanh(omega*alpha), typically 1e2/Omega_nom
# 0.5, # ; Delay time for before brake starts to deploy [s]
# 0.6, # ; Time for brake to become fully deployed [s]])
# ]):
# settings[i] = s
import pytest
def test_brake():
import platform
if platform.architecture()[0] != '64bit':
pytest.xfail('Test only applies to 64bit version')
filename = os.path.dirname(__file__) + '/../source/x64/Release/mech_brake_64.dll'
DELTAT = 0.01
T = 50
N_ITER = int(T // DELTAT)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment