Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 219:1cfd651eb2b2, committed 2018-06-26
- Comitter:
- bwang
- Date:
- Tue Jun 26 19:48:14 2018 +0000
- Parent:
- 218:13981deba5a8
- Child:
- 220:ff69c230aa6d
- Commit message:
- 06/26/2018 15:47 - GetUnlimitedElecPosition() is now a private member of PositionSensorEncoder class (it is only used to compute mechanical position)
Changed in this revision
| CHANGELOG.txt | Show annotated file Show diff for this revision Revisions of this file |
| PositionSensor/PositionSensor.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/CHANGELOG.txt Wed May 30 01:34:39 2018 +0000 +++ b/CHANGELOG.txt Tue Jun 26 19:48:14 2018 +0000 @@ -50,4 +50,5 @@ 02/13/2017 20:33 - set serial RX interrupt to be lower priority than commutation interrupt 02/13/2018 23:15 - cmd_flush() now works in all modes (otherwise the controller would only ever boot up in MODE_CFG) 02/20/2018 00:54 - moved modes.cpp to correct location -05/29/2018 21:33 - microcontroller now resets resolver decode IC after voltages stabilize, to prevent position sensor from being off by pi radians \ No newline at end of file +05/29/2018 21:33 - microcontroller now resets resolver decode IC after voltages stabilize, to prevent position sensor from being off by pi radians +06/26/2018 15:47 - GetUnlimitedElecPosition() is now a private member of PositionSensorEncoder class (it is only used to compute mechanical position) \ No newline at end of file
--- a/PositionSensor/PositionSensor.h Wed May 30 01:34:39 2018 +0000
+++ b/PositionSensor/PositionSensor.h Tue Jun 26 19:48:14 2018 +0000
@@ -5,22 +5,20 @@
public:
virtual float GetMechPosition() {return 0.0f;}
virtual float GetElecPosition() {return 0.0f;}
- virtual float GetUnlimitedElecPosition() {return 0.0f;}
virtual bool IsValid() {return false;}
};
-
class PositionSensorEncoder: public PositionSensor {
public:
PositionSensorEncoder(int cpr, float offset);
virtual float GetMechPosition();
virtual float GetElecPosition();
- virtual float GetUnlimitedElecPosition();
virtual bool IsValid();
private:
InterruptIn *ZPulse;
DigitalIn *ZSense;
void ZeroEncoderCount(void);
+ virtual float GetUnlimitedElecPosition();
private:
int _cpr;
int _lobes;