Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
184be19c
Commit
184be19c
authored
Aug 12, 2015
by
Jeroen Vreeken
Browse files
Fix sourceterm for dumping dot file
parent
4874c588
Changes
2
Hide whitespace changes
Inline
Side-by-side
controller/ec/block_stoeber.c
View file @
184be19c
...
...
@@ -723,6 +723,9 @@ static struct controller_block *block_stoeber_create(char *name, int argc, va_li
stoeber_tx structs already. */
stoeber
->
outputs
=
stoeber_rx
->
outputs
;
stoeber
->
output
=
stoeber_rx
->
output
;
for
(
i
=
0
;
i
<
controller
->
outputs
;
i
++
)
{
controller
->
output
[
i
].
sourceterm
=
&
controller_rx
->
output
[
i
];
}
if
(
controller_block_interm_list_init
(
stoeber_tx
,
interms
))
goto
err_tx_input
;
...
...
controller/vesp/block_vesp_controller.c
View file @
184be19c
...
...
@@ -207,7 +207,7 @@ static struct controller_block * block_vesp_controller_create(char *name,
controller_rx
->
calculate
=
calculate_controller_rx
;
controller_tx
->
calculate
=
calculate_controller_tx
;
if
(
controller_block_outterm_list_init
(
controller
,
outterms
))
if
(
controller_block_outterm_list_init
(
controller
_rx
,
outterms
))
goto
err_block
;
if
(
controller_block_interm_list_init
(
controller_tx
,
interms
))
...
...
@@ -215,7 +215,10 @@ static struct controller_block * block_vesp_controller_create(char *name,
controller
->
outputs
=
controller_rx
->
outputs
;
controller
->
output
=
controller_rx
->
output
;
for
(
i
=
0
;
i
<
controller
->
outputs
;
i
++
)
{
controller
->
output
[
i
].
sourceterm
=
&
controller_rx
->
output
[
i
];
}
controller
->
inputs
=
controller_tx
->
inputs
;
controller
->
input
=
calloc
(
controller
->
inputs
,
sizeof
(
struct
controller_block_interm
));
if
(
!
controller
->
input
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment