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
a599c249
Commit
a599c249
authored
Jan 23, 2015
by
Jeroen Vreeken
Browse files
Merge ../dt_ctrl-pand into beaglebone
parents
019e62b4
2f2ff187
Changes
10
Hide whitespace changes
Inline
Side-by-side
console/winrotor-usb/winrotor-usb.c
View file @
a599c249
...
@@ -222,7 +222,8 @@ static void param_set(struct controller_block *wru, int param, void *val)
...
@@ -222,7 +222,8 @@ static void param_set(struct controller_block *wru, int param, void *val)
}
}
}
}
struct
controller_block
*
block_winrotor_usb_create
(
char
*
name
)
struct
controller_block
*
block_winrotor_usb_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
usb_dev_handle
*
hdl
;
struct
usb_dev_handle
*
hdl
;
struct
controller_block
*
wru
;
struct
controller_block
*
wru
;
...
@@ -310,3 +311,8 @@ err_usb:
...
@@ -310,3 +311,8 @@ err_usb:
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
winrotor_usb
)
=
{
.
create
=
block_winrotor_usb_create
,
.
args
=
{
NULL
},
};
controller/block/block_counter.c
View file @
a599c249
...
@@ -86,7 +86,8 @@ static struct controller_block_outterm_list outterms[] = {
...
@@ -86,7 +86,8 @@ static struct controller_block_outterm_list outterms[] = {
{
NULL
}
{
NULL
}
};
};
struct
controller_block
*
block_counter_create
(
char
*
name
)
struct
controller_block
*
block_counter_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
counter
;
struct
controller_block
*
counter
;
...
@@ -120,3 +121,8 @@ err_inputs:
...
@@ -120,3 +121,8 @@ err_inputs:
controller_block_free
(
counter
);
controller_block_free
(
counter
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
counter
)
=
{
.
create
=
block_counter_create
,
.
args
=
{
NULL
},
};
controller/block/block_debug.c
View file @
a599c249
...
@@ -41,7 +41,7 @@ static void calculate(struct controller_block *debug)
...
@@ -41,7 +41,7 @@ static void calculate(struct controller_block *debug)
fprintf
(
stderr
,
"%s.in: %e
\n
"
,
debug
->
name
,
*
debug
->
private
->
in
);
fprintf
(
stderr
,
"%s.in: %e
\n
"
,
debug
->
name
,
*
debug
->
private
->
in
);
}
}
struct
controller_block
*
block_debug_create
(
char
*
name
)
struct
controller_block
*
block_debug_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
debug
;
struct
controller_block
*
debug
;
...
@@ -72,3 +72,8 @@ err_name:
...
@@ -72,3 +72,8 @@ err_name:
controller_block_free
(
debug
);
controller_block_free
(
debug
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
debug
)
=
{
.
create
=
block_debug_create
,
.
args
=
{
NULL
},
};
controller/block/block_gain_var.c
View file @
a599c249
...
@@ -59,7 +59,8 @@ static struct controller_block_outterm_list outterms[] = {
...
@@ -59,7 +59,8 @@ static struct controller_block_outterm_list outterms[] = {
{
NULL
}
{
NULL
}
};
};
struct
controller_block
*
block_gain_var_create
(
char
*
name
)
struct
controller_block
*
block_gain_var_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
gain
;
struct
controller_block
*
gain
;
...
@@ -85,3 +86,9 @@ err_block:
...
@@ -85,3 +86,9 @@ err_block:
controller_block_free
(
gain
);
controller_block_free
(
gain
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
gain_var
)
=
{
.
create
=
block_gain_var_create
,
.
args
=
{
NULL
},
};
controller/block/block_inverse_proportional.c
View file @
a599c249
...
@@ -94,7 +94,8 @@ static struct controller_block_outterm_list outterms[] = {
...
@@ -94,7 +94,8 @@ static struct controller_block_outterm_list outterms[] = {
};
};
struct
controller_block
*
block_inverse_proportional_create
(
char
*
name
)
struct
controller_block
*
block_inverse_proportional_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
iprop
;
struct
controller_block
*
iprop
;
...
@@ -135,3 +136,8 @@ err_inputs:
...
@@ -135,3 +136,8 @@ err_inputs:
free
(
iprop
);
free
(
iprop
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
inverse_proportional
)
=
{
.
create
=
block_inverse_proportional_create
,
.
args
=
{
NULL
},
};
controller/block/block_quadrature_decoder.c
View file @
a599c249
/*
/*
* Copyright (c) 2012,
* Copyright (c) 2012,
2015,
* Daan Vreeken <Daan @ Vitsch . nl> - Vitsch Electronics
* Daan Vreeken <Daan @ Vitsch . nl> - Vitsch Electronics
* All rights reserved.
* All rights reserved.
*
*
...
@@ -146,7 +146,8 @@ static struct controller_block_outterm_list outterms[] = {
...
@@ -146,7 +146,8 @@ static struct controller_block_outterm_list outterms[] = {
{
NULL
},
{
NULL
},
};
};
struct
controller_block
*
block_quadrature_decoder_create
(
char
*
name
)
struct
controller_block
*
block_quadrature_decoder_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
block
;
struct
controller_block
*
block
;
...
@@ -178,3 +179,8 @@ err_block:
...
@@ -178,3 +179,8 @@ err_block:
controller_block_free
(
block
);
controller_block_free
(
block
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
quadrature_decoder
)
=
{
.
create
=
block_quadrature_decoder_create
,
.
args
=
{
NULL
},
};
controller/block/block_random.c
View file @
a599c249
...
@@ -49,7 +49,8 @@ static struct controller_block_outterm_list outterms[] = {
...
@@ -49,7 +49,8 @@ static struct controller_block_outterm_list outterms[] = {
{
NULL
}
{
NULL
}
};
};
struct
controller_block
*
block_random_create
(
char
*
name
)
struct
controller_block
*
block_random_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
random
;
struct
controller_block
*
random
;
...
@@ -72,3 +73,8 @@ err_block:
...
@@ -72,3 +73,8 @@ err_block:
controller_block_free
(
random
);
controller_block_free
(
random
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
random
)
=
{
.
create
=
block_random_create
,
.
args
=
{
NULL
},
};
controller/block/block_sine.c
View file @
a599c249
...
@@ -81,7 +81,7 @@ static struct controller_block_outterm_list outterms[] = {
...
@@ -81,7 +81,7 @@ static struct controller_block_outterm_list outterms[] = {
{
NULL
}
{
NULL
}
};
};
struct
controller_block
*
block_sine_create
(
char
*
name
)
struct
controller_block
*
block_sine_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
sine
;
struct
controller_block
*
sine
;
...
@@ -111,3 +111,8 @@ err_block:
...
@@ -111,3 +111,8 @@ err_block:
controller_block_free
(
sine
);
controller_block_free
(
sine
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
sine
)
=
{
.
create
=
block_sine_create
,
.
args
=
{
NULL
},
};
controller/block/block_trajectplayer.c
View file @
a599c249
...
@@ -218,7 +218,8 @@ static struct controller_block_outterm_list outterms[] = {
...
@@ -218,7 +218,8 @@ static struct controller_block_outterm_list outterms[] = {
};
};
struct
controller_block
*
block_trajectplayer_create
(
char
*
name
)
struct
controller_block
*
block_trajectplayer_create
(
char
*
name
,
int
argc
,
va_list
ap
)
{
{
struct
controller_block
*
player
;
struct
controller_block
*
player
;
...
@@ -255,3 +256,8 @@ err_block:
...
@@ -255,3 +256,8 @@ err_block:
controller_block_free
(
player
);
controller_block_free
(
player
);
return
NULL
;
return
NULL
;
}
}
BLOCK_CREATE
(
trajectplayer
)
=
{
.
create
=
block_trajectplayer_create
,
.
args
=
{
NULL
},
};
controller/block/block_trajectplayer.h
View file @
a599c249
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
#include
<controller/controller_block.h>
#include
<controller/controller_block.h>
struct
controller_block
*
block_trajectplayer_create
(
char
*
name
);
struct
controller_block
*
block_trajectplayer_create
(
char
*
name
,
int
argc
,
va_list
ap
);
struct
block_trajectplayer_param
{
struct
block_trajectplayer_param
{
int
nr
;
int
nr
;
...
...
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