Skip to content

Commit 005c0e4

Browse files
committed
v2.3 preparation
1 parent 2dc0498 commit 005c0e4

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,24 @@ Therefore this is an attempt to:
2525
- See also [@byDagor](https://github.com/byDagor)'s *fully-integrated* ESP32 based board: [Dagor Brushless Controller](https://github.com/byDagor/Dagor-Brushless-Controller)
2626

2727
> NEXT RELEASE 📢 : <span class="simple">Simple<span class="foc">FOC</span>library</span> v2.3.0
28+
> - Arduino Mega 6pwm more timers supported
29+
> - Arduino boards - frequency change support either 32kHz or 4kHz
30+
> - Arduino Uno - synched timers in 3pwm and 6pwm mode [#71](https://github.com/simplefoc/Arduino-FOC/issues/71)
2831
> - Teensy 3.x initial support for 6pwm
2932
> - Teensy 4.x initial support for 6pwm
3033
> - Example for v3.1 SimpleFOCShield
34+
> - RP2040 compatibility for earlehillpower core [#234](https://github.com/simplefoc/Arduino-FOC/pull/234) [#236](https://github.com/simplefoc/Arduino-FOC/pull/236)
3135
> - More flexible monitoring API
3236
> - start, end and separator characters
3337
> - decimal places (settable through commander)
38+
> - Added machine readable verbose mode in `Commander` [#233](https://github.com/simplefoc/Arduino-FOC/pull/233)
39+
> - *Simple**FOC**WebController* - Web based user interface for SimpleFOC by [@geekuillaume](https://github.com/geekuillaume) - [webcontroller.simplefoc.com](webcontroller.simplefoc.com)
40+
> - bugfix - `MagneticSensorPWM` multiple occasions - [#258](https://github.com/simplefoc/Arduino-FOC/pull/258)
3441
> - bugfix - current sense align - added offset exchange when exchanging pins
3542
> - bugfix - trapezoid 150 fixed
43+
> - bugfix - 4pwm on ESP8266 [#224](https://github.com/simplefoc/Arduino-FOC/pull/224)
44+
> - Additional `InlineCurrentSense` and `LowsideCurrentSense` constructor using milliVolts per Amp [#253](https://github.com/simplefoc/Arduino-FOC/pull/253)
45+
> - STM32L4xx current sense support by [@Triple6](https://github.com/Triple6) (discord) [#257](https://github.com/simplefoc/Arduino-FOC/pull/257)
3646
> - phase disable in 6pwm mode
3747
> - stm32 - software and hardware 6pwm
3848
> - atmega328
@@ -41,7 +51,7 @@ Therefore this is an attempt to:
4151
> - current control through voltage torque mode enhancement
4252
> - extended `BLDCMotor` and `StepperMotor` constructors to receive the inductance paramerer
4353
> - can also be set using `motor.phase_inductance` or through `Commander`
44-
## Arduino *SimpleFOClibrary* v2.2.3
54+
## Arduino *SimpleFOClibrary* v2.3
4555

4656
<p align="">
4757
<a href="https://youtu.be/Y5kLeqTc6Zk">
@@ -223,11 +233,3 @@ If you are interested in citing *Simple**FOC**library* or some other component
223233
}
224234
225235
```
226-
227-
228-
## Arduino FOC repo structure
229-
Branch | Description | Status
230-
------------ | ------------- | ------------
231-
[master](https://github.com/simplefoc/Arduino-FOC) | Stable and tested library version | ![Library Compile](https://github.com/simplefoc/Arduino-FOC/workflows/Library%20Compile/badge.svg)
232-
[dev](https://github.com/simplefoc/Arduino-FOC/tree/dev) | Development library version | ![Library Dev Compile](https://github.com/simplefoc/Arduino-FOC/workflows/Library%20Dev%20Compile/badge.svg?branch=dev)
233-
[minimal](https://github.com/simplefoc/Arduino-FOC/tree/minimal) | Minimal Arduino example with integrated library | ![MinimalBuild](https://github.com/simplefoc/Arduino-FOC/workflows/MinimalBuild/badge.svg?branch=minimal)

src/current_sense/LowsideCurrentSense.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ LowsideCurrentSense::LowsideCurrentSense(float _mVpA, int _pinA, int _pinB, int
2525
pinB = _pinB;
2626
pinC = _pinC;
2727

28-
volts_to_amps_ratio = _mVpA / 1000.0f; // mV to amps
28+
volts_to_amps_ratio = 1000.0f / _mVpA; // mV to amps
2929
// gains for each phase
3030
gain_a = volts_to_amps_ratio;
3131
gain_b = volts_to_amps_ratio;

0 commit comments

Comments
 (0)