mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-23 00:38:25 +08:00
12 lines
384 B
C
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
|