- 23 Feb, 2015 3 commits
-
-
Jeroen Vreeken authored
-
Jeroen Vreeken authored
Use log block for logging DT HW position switches. Remove hard coded logging from safety block. Leave the rest of the block intact for now.
-
Jeroen Vreeken authored
It can now be used to make a dump from a trace stream on stdin. Nice for taking a quick look at traces which were dumped to disk first.
-
- 13 Feb, 2015 1 commit
-
-
Jeroen Vreeken authored
Remove now unneeded nsec base time. Command handling in the sample now uses trigger time. Trace handling still has to be done, then all nsec timers can be removed from the sample.
-
- 12 Feb, 2015 1 commit
-
-
Jeroen Vreeken authored
Sample counter removed from time interface. Only ec.c used it and it did not add anything useful. While sample is running trigger is now responsible for timestamps and translation to wall clock. (allows external clock/trigger sources). Log functions now log sub-second timestamps.
-
- 02 Feb, 2015 1 commit
-
-
Jeroen Vreeken authored
-
- 30 Jan, 2015 1 commit
-
-
Jeroen Vreeken authored
-
- 28 Jan, 2015 1 commit
-
-
Jeroen Vreeken authored
Default is set to true, if set to false console_httpd will directly connect to the controller instead of the proxies. Add test for quadrature decoder and optimize it a bit. Optimize oneshot block a bit. Add test blocks for sint32 inputs and outputs. Also add tests for them to test.ctrl
-
- 24 Jan, 2015 3 commits
-
-
Jeroen Vreeken authored
(localhost resolves to ipv6 and ipv4 on video...) Modify trace file dump to only 100k now the trace is more efficient.
-
Jeroen Vreeken authored
-
Jeroen Vreeken authored
-
- 23 Jan, 2015 11 commits
-
-
Daan Vreeken authored
command line option '--history [seconds]'. The default is still 60 seconds. o Add a command line option '--interval [seconds]' to set the sample interval. The default sample interval without the options remains 0.2 seconds as before. o Add '--host [IP address or hostname]' command line option to view traces on a remote machine. o Add '--port [remote port number]' command line option to specify the port number of the trace server to connect to. o Add usage() function to inform user of possible optins. o Keep track of the lowest and highest values in a plot and adjust the y range to be just over min and max so that all samples will fit within the plot, without the highest and lowest values dissapearing under the borders of the plot. modified: common/trace/trace_view.c
-
Jeroen Vreeken authored
Optimize oneshot block and bridge_pwm block: -minimize amount of branches by removing sequence points. -Use local variables for structure fields to minimize dereferences.
-
Jeroen Vreeken authored
compatibility code from controller_block. Not having a create struct will now lead to failure to load the ctrl file.
-
Jeroen Vreeken authored
-
Daan Vreeken authored
modified: controller/block/block_quadrature_decoder.c
-
Daan Vreeken authored
modified: controller/block/block_counter.c modified: controller/block/block_debug.c modified: controller/block/block_gain_var.c modified: controller/block/block_inverse_proportional.c modified: controller/block/block_random.c modified: controller/block/block_sine.c modified: controller/block/block_trajectplayer.c modified: controller/block/block_trajectplayer.h
-
Daan Vreeken authored
modified: console/winrotor-usb/winrotor-usb.c
-
Jeroen Vreeken authored
Handy for testing, or scripts.
-
Jeroen Vreeken authored
Add a little bit of logging.
-
Daan Vreeken authored
modified: console/console/spg_auth.c modified: console/console/trace_proxy.c
-
Daan Vreeken authored
-
- 22 Jan, 2015 5 commits
-
-
Daan Vreeken authored
modified: block/block_oneshot.c
-
Daan Vreeken authored
modified: block/build.mk
-
Daan Vreeken authored
When its 'reset' input is active, the output will always be off (=false). When the 'set' input is active, the output will be turned on. Once the 'set' input becomes inactive, the output will remain on for 'period' seconds and then turn off. A parameter called 'force' allows the block to be forced into the 'set' or 'reset' states. new file: block/block_oneshot.c
-
Jeroen Vreeken authored
Trace server capacity is now based on actuall number of outputs, not on some magic number. Add name and unit option to command_bool and command_float. Modify tests to test this.
-
Jeroen Vreeken authored
A lot simpler than the 1d and 3d setpoint generator and perfect for temperature settings ;) Add test for command_float block.
-
- 21 Jan, 2015 1 commit
-
-
Jeroen Vreeken authored
-
- 20 Jan, 2015 12 commits
-
-
Daan Vreeken authored
With this, we can create e.g. an oscillator module that only has an output, but no inputs. modified: controller/controller_load_parser.y
-
Daan Vreeken authored
modified: controller/controller_load_parser.y
-
Daan Vreeken authored
The 'filename' parameter wasn't initialized here, so when extra->filename is used to generate e.g. log messages, garbage entered the log. modified: controller/controller_load.c
-
Daan Vreeken authored
allows us to e.g. comment out all parameter lines in a parameter block. (Commenting out all parameters would fail before.) modified: controller/controller_load_parser.y
-
Daan Vreeken authored
modified: controller/controller/controller_block.c modified: controller/controller/controller_block.h
-
Jeroen Vreeken authored
Also add test for different linking variants (late, immediate, not-chained). All expected/assumed behaviour should get explicit tests. Same for blocks. Block behaviour must be testable without the real application. (or real hardware, which is the bigger problem) Conflicts: controller/controller/controller_block.c
-
Jeroen Vreeken authored
Use one version everywhere, and make sure that one version is complete. This version also uses a switch with the actuall enum types, which is safer.
-
Daan Vreeken authored
-
Daan Vreeken authored
We do this by checking the final state of all links after loading the top-most controller file. The new code will allow an included file to create links to blocks that will only exist later on during the load process, and it will successfully error out when links are defined for non-existing block. Furthermore, controller_block_link() will now bail out immediately when it hits an unrecoverable linker error. With this change, the error mesaage of the linker step that failed will remain at the end of the output instead of being flushed off the screen by e.g. 100+ 'Linked x to y (chained)' lines. modified: controller/controller/controller_block.c modified: controller/controller/controller_load.c
-
Jeroen Vreeken authored
-
Daan Vreeken authored
This caused all my .ctrl files with typos or non-existing block names in their 'links { }' section to 'just run' instead of failing with an error. We will now halt with an error like : DEBUG: Input block 'digg_out2' does not (yet) exist, will try to link later ERROR: Failed to link controller! ERROR: Could not load controller file modified: controller/controller_load.c
-
Daan Vreeken authored
Untill now, connecting e.g. a 'bool' output to a 'float' input would give: ERROR: Input terminal x.y not found .. although both the input and the output existed. With this commit, the error will read : ERROR: Type mismatch. Can't connect output terminal a.b (of type 'bool') to input terminal x.y (of type 'float') modified: controller/controller_block.c modified: controller/controller_block.h
-