Browse Source

Fix non atsam build.

Add deadzone test
jeroen
Jeroen Vreeken 3 years ago
parent
commit
0e9189bcc1
3 changed files with 34 additions and 1 deletions
  1. +28
    -0
      controller/block/block_deadzone.test.ctrl
  2. +1
    -0
      controller/block/build.mk
  3. +5
    -1
      controller/trigger/build.mk

+ 28
- 0
controller/block/block_deadzone.test.ctrl View File

@ -0,0 +1,28 @@
trigger {
{ "immediate" }
}
blocks (100.0, 0.0) {
{ "deadzone", "deadzone" }
{ "test_input_float", "test_input" }
{ "test_output_float", "test_output" }
}
links {
{ "test_input", "value", "deadzone", "in", true }
{ "deadzone", "out", "test_output", "value", true }
}
params {
{ "deadzone", "deadzone", (float) 0.1 }
{ "deadzone", "intercept", (float) 10.0 }
{ "test_input", "value", 4, (float) { 0.0, 0.09, -0.09, 10.0 } }
{ "test_output", "value", 4,
(float) { 0.0, 0.0, 0.0, 10.0 },
(float) { 0.0, 0.0, 0.0, 0.0 }
}
}
set trace_server false

+ 1
- 0
controller/block/build.mk View File

@ -112,6 +112,7 @@ CTRL_TESTS += \
$(DIR)/block_command_bool.test.output \
$(DIR)/block_command_float.test.output \
$(DIR)/block_command_uint32.test.output \
$(DIR)/block_deadzone.test.output \
$(DIR)/block_ex.test.output \
$(DIR)/block_gain.test.output \
$(DIR)/block_gain_ratio_abs.test.output \


+ 5
- 1
controller/trigger/build.mk View File

@ -2,8 +2,12 @@
TRIGGER_TARGETS := $(LIBDIR)/libtrigger.la
TRIGGERS := \
immediate \
immediate
ifdef BUILD_SYSTICK
TRIGGERS += \
systick
endif
ifdef BUILD_PTHREAD
TRIGGERS += \


Loading…
Cancel
Save