Files
ODrive/MotorControl/utils.h
T
2016-11-20 00:59:20 +09:00

12 lines
384 B
C

#ifndef __UTILS_H
#define __UTILS_H
// Compute rising edge timings (0.0 - 1.0) as a function of alpha-beta
// as per the magnitude invariant clarke transform
// The magnitude of the alpha-beta vector may not be larger than sqrt(3)/2
// Returns 0 on success, and -1 if the input was out of range
int SVM(float alpha, float beta, float* tA, float* tB, float* tC);
#endif //__UTILS_H