mirror of
https://github.com/nasa/trick.git
synced 2025-05-13 14:02:50 +00:00
Some checks failed
Linux Python 2 / build (clang-devel gcc gcc-c++ java-11-openjdk-devel libxml2-devel llvm-devel llvm-static ncurses-devel openmotif openmotif-devel perl perl-Digest-MD5 udunits2 udunits2-devel which zlib-devel python2-devel python3-devel, map[arch:rhel]) (push) Has been cancelled
Linux Python 2 / build (map[], echo package manager already configured, bison clang flex git llvm make maven cmake zip, install -y, echo gtest already installed) (push) Has been cancelled
Linux Python 2 / build (map[arch:debian arch_ver:12 os:ubuntu tag:22.04], 2) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:7], yum -y install epel-release
yum -y update
, libX11-devel libXt-devel swig3 gtest-devel, yum) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:8 os:oraclelinux tag:8], 2) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:8 os:rockylinux tag:8], 2) (push) Has been cancelled
Linux Python 2 / build (map[arch:rhel arch_ver:8], dnf -y install epel-release
dnf -y update
dnf install -y 'dnf-command(config-manager)'
, dnf config-manager --enable powertools
dnf install -y gtest-devel
, dnf, swig diffutils) (push) Has been cancelled
Linux Python 2 / build (map[os:oraclelinux], dnf config-manager --enable ol8_codeready_builder
dnf install -y gtest-devel
) (push) Has been cancelled
Linux Python 2 / build (swig curl g++ libx11-dev libxml2-dev libxt-dev libmotif-common libmotif-dev zlib1g-dev llvm-dev libclang-dev libudunits2-dev libgtest-dev default-jdk python2.7-dev python3-dev python3-pip python3-venv, map[arch:debian], apt-get update, apt-get i… (push) Has been cancelled
32-bit Oracle / trick_32bit_oracle (push) Has been cancelled
Test Docker Hub Images / latest (trick_ubuntu1804) (push) Has been cancelled
More Linux / build (clang-devel gcc gcc-c++ java-11-openjdk-devel libxml2-devel llvm-devel llvm-static ncurses-devel openmotif openmotif-devel perl perl-Digest-MD5 udunits2 udunits2-devel which zlib-devel python2-devel python3-devel, map[arch:rhel]) (push) Has been cancelled
More Linux / build (map[], echo package manager already configured, bison clang flex git llvm make maven cmake zip, install -y, echo gtest already installed) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:10 os:debian tag:10], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:10 os:debian tag:10], 3) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:10], apt-get install -y libgtest-dev
cd /usr/src/gtest
cmake .
make
cp libgtest* /usr/lib/
) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:debian tag:11], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:debian tag:11], 3) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:ubuntu tag:20.04], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11 os:ubuntu tag:20.04], 3) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:11], export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y tzdata
) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:12 os:debian tag:bookworm], 2) (push) Has been cancelled
More Linux / build (map[arch:debian arch_ver:12 os:debian tag:bookworm], 3) (push) Has been cancelled
More Linux / build (map[arch:debian], 2, python2.7-dev) (push) Has been cancelled
More Linux / build (map[arch:rhel arch_ver:8 os:almalinux tag:8], 2) (push) Has been cancelled
More Linux / build (map[arch:rhel arch_ver:8 os:almalinux tag:8], 3) (push) Has been cancelled
More Linux / build (map[arch:rhel arch_ver:8], dnf -y install epel-release
dnf -y update
dnf install -y 'dnf-command(config-manager)'
, dnf config-manager --enable powertools
dnf install -y gtest-devel
, dnf, swig diffutils) (push) Has been cancelled
More Linux / build (swig curl g++ libx11-dev libxml2-dev libxt-dev libmotif-common libmotif-dev zlib1g-dev llvm-dev libclang-dev libudunits2-dev libgtest-dev default-jdk python3-dev python3-pip python3-venv, map[arch:debian], apt-get update, apt-get install -y libg… (push) Has been cancelled
* Integrated MultiDtInteg classes into Trick build. * Corrected some comments * Cleaned up version and added test * Small fixes and more interesting test case * Added MultiDt integration User's Guide section. * Correct numbered solutions * Newline fix * Added check that an integration rate can be represented in trick tics * Fixed doc comment and added baseline sat2d_multidt sim. Need to add specific rates. * Fixed some tics vs doubles issues. Added testing and comparison vs single rate. exact match * cleaned up unit test input files and prevent both realtime and any guis if unit tests are enabled * Fix input file syntax error
50 lines
1.7 KiB
Python
50 lines
1.7 KiB
Python
|
|
# Data recording test
|
|
drg0 = trick.DRBinary("Ball")
|
|
for param in [ 'position' , 'velocity' , 'acceleration' , 'external_force' ] :
|
|
for index in range(0,2) :
|
|
var = "ball.output_" + param + "[" + str(index) + "]"
|
|
drg0.add_variable(var)
|
|
#drg0.set_cycle(0.01)
|
|
drg0.freq = trick.DR_Always
|
|
trick_data_record.drd.add_group(drg0, trick.DR_No_Buffer)
|
|
|
|
my_integ_loop.set_integ_cycle(1.0/40)
|
|
my_integ_loop.add_rate(1.0/64)
|
|
|
|
my_integ_loop.integ_sched.verbosity = True
|
|
|
|
trick.add_read(0.025, '''
|
|
my_integ_loop.set_integ_cycle(0.02)
|
|
trick.message_publish(1, 'Called my_integ_loop.set_integ_cycle(0.02)\\n')
|
|
''')
|
|
|
|
trick.add_read(0.075, '''
|
|
my_integ_loop.integ_sched.set_integ_rate(1, 0.01)
|
|
trick.message_publish(1, 'Called my_integ_loop.integ_sched.set_integ_rate(1, 0.01)\\n')
|
|
''')
|
|
|
|
trick.add_read(1.0, '''
|
|
my_integ_loop.integ_sched.set_integ_rate(0, 0.025)
|
|
my_integ_loop.integ_sched.set_integ_rate(1, 0.015625)
|
|
trick.message_publish(1, 'Called my_integ_loop.integ_sched.set_integ_rate(0, 0.025)\\n')
|
|
trick.message_publish(1, 'Called my_integ_loop.integ_sched.set_integ_rate(1, 0.015625)\\n')
|
|
trick.message_publish(1, f'Total num rates = {my_integ_loop.integ_sched.get_num_rates()}\\n')
|
|
trick.message_publish(1, f'Rate 0 = {my_integ_loop.integ_sched.get_rate(0)}\\n')
|
|
trick.message_publish(1, f'Rate 1 = {my_integ_loop.integ_sched.get_rate(1)}\\n')
|
|
trick.message_publish(1, f'Rate 2 = {my_integ_loop.integ_sched.get_rate(2)}\\n')
|
|
''')
|
|
|
|
trick.add_read(1.2, '''
|
|
my_integ_loop.integ_sched.verbosity = False
|
|
''')
|
|
|
|
read = 0.0
|
|
trick.add_read(read , """trick.checkpoint("chkpnt_pre_init")""")
|
|
|
|
read = 300.0
|
|
trick.add_read(read , """trick.checkpoint("chkpnt_300.0")""")
|
|
|
|
trick.exec_set_terminate_time(300.0)
|
|
|