Commit ac25fb39 authored by Jeroen Vreeken's avatar Jeroen Vreeken
Browse files

Little cleanup of some macros

parent d72360d8
......@@ -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
*/
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment