You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/encoders/calibrated/README.md
+26-3Lines changed: 26 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,29 @@ Please see the more complete [example](https://github.com/simplefoc/Arduino-FOC-
86
86
The code has been rewritten to reduce its memory footprint and allow more flexible Lookup table (LUT) sizing.
87
87
Additionally, the calibrated sensor class now supports providing the saved LUT as a paramer for calibration. This allows you to save the LUT and load it on startup to avoid recalibration on each startup.
88
88
89
+
Once you do the calibration once, it will output something like this:
The LUT and sensor's zero angle and direction are outputed by the calibration process to the Serial terminal. So you can copy and paste them into your code.
90
113
91
114
Your code will look something like this:
@@ -95,9 +118,9 @@ Your code will look something like this:
95
118
// number of LUT entries
96
119
const N_LUT = 100;
97
120
// Lookup table that has been ouptut from the calibration process
0 commit comments