Skip to content

Commit 2a614dd

Browse files
authored
Merge branch 'dev' into double_constants
2 parents ef580d7 + 7b8c077 commit 2a614dd

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,8 @@ Therefore this is an attempt to:
2525
- *Medium-power* BLDC driver (<30Amps): [Arduino <span class="simple">Simple<b>FOC</b>PowerShield</span> ](https://github.com/simplefoc/Arduino-SimpleFOC-PowerShield).
2626
- See also [@byDagor](https://github.com/byDagor)'s *fully-integrated* ESP32 based board: [Dagor Brushless Controller](https://github.com/byDagor/Dagor-Brushless-Controller)
2727

28-
> NEW RELEASE 📢 : <span class="simple">Simple<span class="foc">FOC</span>library</span> v2.3.2
29-
> - Improved [space vector modulation code](https://github.com/simplefoc/Arduino-FOC/pull/309) thanks to [@Candas1](https://github.com/Candas1)
30-
> - Bugfix for stepper motor initialization
31-
> - Bugfix for current sensing when only 2 phase currents available - please re-check your current sense PID tuning
32-
> - Bugfix for teensy3.2 - [#321](https://github.com/simplefoc/Arduino-FOC/pull/321)
33-
> - Added teensy3/4 compile to the github CI using platformio
34-
> - Fix compile issues with recent versions of ESP32 framework
35-
> - Add ADC calibration on STM32 MCUs
36-
> - Bugfix for crash when using ADC2 on ESP32s - [thanks to @mcells](https://github.com/simplefoc/Arduino-FOC/pull/346)
37-
> - Bugfix for renesas PWM on UNO R4 WiFi - [thanks to @facchinm](https://github.com/simplefoc/Arduino-FOC/pull/322)
38-
> - And more bugfixes - see the complete list of 2.3.2 [fixes and PRs](https://github.com/simplefoc/Arduino-FOC/milestone/9?closed=1)
28+
> NEW RELEASE 📢 : <span class="simple">Simple<span class="foc">FOC</span>library</span> v2.3.3
29+
> - And more bugfixes - see the complete list of 2.3.3 [fixes and PRs](https://github.com/simplefoc/Arduino-FOC/milestone/10?closed=1)
3930
4031

4132
## Arduino *SimpleFOClibrary* v2.3.2

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Simple FOC
2-
version=2.3.2
2+
version=2.3.3
33
author=Simplefoc <info@simplefoc.com>
44
maintainer=Simplefoc <info@simplefoc.com>
55
sentence=A library demistifying FOC for BLDC motors

src/common/defaults.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
// align voltage
4444
#define DEF_VOLTAGE_SENSOR_ALIGN 3.0f //!< default voltage for sensor and motor zero alignemt
4545
// low pass filter velocity
46-
#define DEF_VEL_FILTER_Tf 0.005 //!< default velocity filter time constant
46+
#define DEF_VEL_FILTER_Tf 0.005f //!< default velocity filter time constant
4747

4848
// current sense default parameters
4949
#define DEF_LPF_PER_PHASE_CURRENT_SENSE_Tf 0.0f //!< default currnet sense per phase low pass filter time constant

src/common/foc_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ __attribute__((weak)) float _sin(float a){
99
// 16 bit precision on sine value, 8 bit fractional value for interpolation, 6bit LUT size
1010
// resulting precision compared to stdlib sine is 0.00006480 (RMS difference in range -PI,PI for 3217 steps)
1111
static uint16_t sine_array[65] = {0,804,1608,2411,3212,4011,4808,5602,6393,7180,7962,8740,9512,10279,11039,11793,12540,13279,14010,14733,15447,16151,16846,17531,18205,18868,19520,20160,20788,21403,22006,22595,23170,23732,24279,24812,25330,25833,26320,26791,27246,27684,28106,28511,28899,29269,29622,29957,30274,30572,30853,31114,31357,31581,31786,31972,32138,32286,32413,32522,32610,32679,32729,32758,32768};
12-
unsigned int i = (unsigned int)(a * (64*4*256 /_2PI));
12+
unsigned int i = (unsigned int)(a * (64*4*256/_2PI));
1313
int t1, t2, frac = i & 0xff;
1414
i = (i >> 8) & 0xff;
1515
if (i < 64) {

0 commit comments

Comments
 (0)