Commit 0e9189bc authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Fix non atsam build.

Add deadzone test
parent 30c6d3bd
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
...@@ -112,6 +112,7 @@ CTRL_TESTS += \ ...@@ -112,6 +112,7 @@ CTRL_TESTS += \
$(DIR)/block_command_bool.test.output \ $(DIR)/block_command_bool.test.output \
$(DIR)/block_command_float.test.output \ $(DIR)/block_command_float.test.output \
$(DIR)/block_command_uint32.test.output \ $(DIR)/block_command_uint32.test.output \
$(DIR)/block_deadzone.test.output \
$(DIR)/block_ex.test.output \ $(DIR)/block_ex.test.output \
$(DIR)/block_gain.test.output \ $(DIR)/block_gain.test.output \
$(DIR)/block_gain_ratio_abs.test.output \ $(DIR)/block_gain_ratio_abs.test.output \
......
...@@ -2,8 +2,12 @@ ...@@ -2,8 +2,12 @@
TRIGGER_TARGETS := $(LIBDIR)/libtrigger.la TRIGGER_TARGETS := $(LIBDIR)/libtrigger.la
TRIGGERS := \ TRIGGERS := \
immediate \ immediate
ifdef BUILD_SYSTICK
TRIGGERS += \
systick systick
endif
ifdef BUILD_PTHREAD ifdef BUILD_PTHREAD
TRIGGERS += \ TRIGGERS += \
......
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