mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-25 11:06:48 +08:00
add SVM
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user