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
0135f3f1
Commit
0135f3f1
authored
Aug 03, 2016
by
Jeroen Vreeken
Browse files
Some changes from corso 2015
parent
b66125b9
Changes
3
Show whitespace changes
Inline
Side-by-side
common/command/command.c
View file @
0135f3f1
...
...
@@ -299,6 +299,21 @@ bool command_fd_set(struct command *command, fd_set *set, int *high)
return
true
;
}
int
command_handle_err
(
struct
command
*
command
,
fd_set
*
set
)
{
if
(
FD_ISSET
(
command
->
fd
,
set
))
{
log_send
(
LOG_T_DEBUG
,
"Error, closing %d"
,
command
->
fd
);
if
(
command
->
fd
>=
0
)
close
(
command
->
fd
);
command
->
fd
=
-
1
;
if
(
command
->
handler_close
)
command
->
handler_close
(
command
);
}
return
0
;
}
int
command_handle
(
struct
command
*
command
,
fd_set
*
set
)
{
if
(
FD_ISSET
(
command
->
fd
,
set
))
{
...
...
common/command/command.h
View file @
0135f3f1
...
...
@@ -138,6 +138,7 @@ int command_id_set(struct command *command, char *id);
bool
command_fd_set
(
struct
command
*
command
,
fd_set
*
set
,
int
*
high
);
int
command_handle
(
struct
command
*
command
,
fd_set
*
set
);
int
command_handle_err
(
struct
command
*
command
,
fd_set
*
set
);
enum
command_state
command_state_get
(
struct
command
*
command
);
void
command_autorecover
(
struct
command
*
command
,
bool
value
);
...
...
controller/block/block_pid_aw.c
View file @
0135f3f1
...
...
@@ -102,6 +102,7 @@ static void pid_aw_calculate(struct controller_block *pid)
outp
=
0
;
outi
=
0
;
outd
=
0
;
priv
->
previous
=
0
;
}
priv
->
outp
=
outp
;
...
...
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