Skip to content

Commit 36226d0

Browse files
committed
typo in sensor.h
1 parent 3fff22a commit 36226d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/base_classes/Sensor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ enum Pullup{
2828
* Encoders, Magnetic Encoders and Hall Sensor implementations. This base class extracts the
2929
* most basic common features so that a FOC driver can obtain the data it needs for operation.
3030
*
31-
* To implement your own sensors, create a sub-class of this class, and implement the getAngle()
32-
* method. getAngle() returns a float value, in radians, representing the current shaft angle in the
31+
* To implement your own sensors, create a sub-class of this class, and implement the getSensorAngle()
32+
* method. getSensorAngle() returns a float value, in radians, representing the current shaft angle in the
3333
* range 0 to 2*PI (one full turn).
3434
*
3535
* To function correctly, the sensor class update() method has to be called sufficiently quickly. Normally,

0 commit comments

Comments
 (0)