1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-19 07:02:13 +00:00
stmbl/inc/old/link.h
2017-07-19 13:04:47 +02:00

38 lines
485 B
C

#pragma once
#define RPM(a) ((a) / 60.0 * M_PI * 2.0)
#define KGCM2(a) ((a) / 10000.0)
//Do not change order, append new types at the end
typedef enum{
ENC = 1,
RES,
SINCOS,
STEPDIR,
UPDOWN,
PWM,
FREQ,
MITSU,
YASKAWA,
HYPER,
SANYO,
SSERIAL,
ENDAT,
BISS,
SSI
} protocol_t;
typedef enum{
ACSYNC = 0,
ACASYNC,
AC2PHASE,
DC
} mot_type_t;
void link_pid();
void link_simplepid();
void link_ac();
int update_cmd();
int update_fb();
int update_mot();