Skip to content

Commit c3d0027

Browse files
author
Giuseppe Masino
committed
Released version v4.0.1 - Fixed an serious bug
1 parent 15a1d8c commit c3d0027

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

Changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
[![Keep a Changelog specification badge](https://img.shields.io/badge/Keep%20a%20Changelog%20Specification-1.0.0-orange.svg)](http://keepachangelog.com)
88
[![Semantic Versioning specification badge](https://img.shields.io/badge/Semantic%20Versioning%20Specification-2.0.0-orange.svg)](http://semver.org)
99

10-
## [4.0.0] - 2018-02-18 ##
10+
## [4.0.1] - 2018-02-28 ##
11+
12+
## Fixed ##
13+
14+
- A bug that prevented the use of the library
15+
16+
## [4.0.0] - 2018-02-18 [YANKED] ##
1117

1218
### Added ###
1319

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=L293
2-
version=4.0.0
2+
version=4.0.1
33
author=Giuseppe Masino (qub1750ul)
44
maintainer=Giuseppe Masino (qub1750ul)
55
sentence=A library to control motors with the L293x motor driver and L298x compatible modules

src/L293_base.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ class L293_base
1313
{
1414
public:
1515

16-
virtual ~L293_base() = 0;
17-
18-
inline void setPWMOffset( int16_t _PWMOffset ) ; ///< Applys an offset over the speed value of the motor
19-
inline void stop() const ; ///< Stops the motor by power reduction
20-
inline uint8_t getRawPWMDC() const ; ///< Returns the last set speed value without applying the offset
21-
inline uint8_t getPWMDC() const ; ///< Return the effective last set speed value
16+
void setPWMOffset( int16_t _PWMOffset ) ; ///< Applys an offset over the speed value of the motor
17+
void stop() const ; ///< Stops the motor by power reduction
18+
uint8_t getRawPWMDC() const ; ///< Returns the last set speed value without applying the offset
19+
uint8_t getPWMDC() const ; ///< Return the effective last set speed value
2220

2321
virtual void forward( uint8_t PWMDC = 0 ) = 0 ;
2422
virtual void back( uint8_t PWMDC = 0 ) = 0 ;

src/L293_std.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
L293 :: L293( uint8_t _enablePin, uint8_t _forwardPin, uint8_t _reversePin, int16_t _PWMOffset )
44
{
5-
enablePin = _enablePin;
5+
enablePin = _enablePin;
66
forwardPin = _forwardPin;
77
reversePin = _reversePin;
88

9-
pinMode( enablePin, OUTPUT );
9+
pinMode( enablePin, OUTPUT );
1010
pinMode( forwardPin, OUTPUT );
1111
pinMode( reversePin, OUTPUT );
1212

src/L293_std.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class L293 : public L293_base
1414

1515
L293( uint8_t _enablePin, uint8_t _forwardPin, uint8_t _reversePin, int16_t _speedOffset = 0 );
1616

17-
inline void forceStop( uint16_t handlingTime ); ///< Stops the motor by electrically braking it
18-
inline bool isForceStopped() const ; ///< Tells the information about the motor that the name says
19-
20-
inline void forward( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go forward and sets a new speed value
21-
inline void back( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go reverse and sets a new speed value
22-
inline bool isForward() const override ; ///< Tells the information about the motor that the name says
23-
inline bool isReverse() const override ; ///< Tells the information about the motor that the name says
24-
inline bool isStopped() const override ; ///< Tells the information about the motor that the name says
17+
void forceStop( uint16_t handlingTime ); ///< Stops the motor by electrically braking it
18+
bool isForceStopped() const ; ///< Tells the information about the motor that the name says
19+
20+
void forward( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go forward and sets a new speed value
21+
void back( uint8_t _PWMDC = 0 ) override ; ///< Makes the motor to go reverse and sets a new speed value
22+
bool isForward() const override ;
23+
bool isReverse() const override ;
24+
bool isStopped() const override ;
2525

2626
protected:
2727

0 commit comments

Comments
 (0)