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
ac25fb39
Commit
ac25fb39
authored
Sep 27, 2013
by
Jeroen Vreeken
Browse files
Little cleanup of some macros
parent
d72360d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
controller/controller/controller_block.h
View file @
ac25fb39
...
...
@@ -207,12 +207,6 @@ struct controller_block *controller_block_alloc(char *type, char *name,
void
controller_block_free
(
struct
controller_block
*
blk
);
#define RPM2RADS(val) ((val)*2.0*M_PI/60.0)
#define RADS2RPM(val) ((val)*60.0/(2.0*M_PI))
#define DEG2RAD(val) ((val)*2.0*M_PI/360.0)
#define RAD2DEG(val) ((val)*360.0/(2.0*M_PI))
/*
controller_block_param
*/
...
...
controller/ec/block_stoeber.c
View file @
ac25fb39
...
...
@@ -25,6 +25,10 @@
#include
"ec_stoeber.h"
#include
"log.h"
#define RPM2RADS(val) ((val)*2.0*M_PI/60.0)
struct
controller_block_private
{
struct
ec_stoeber
stbr
;
bool
stbr_init
;
...
...
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