Skip to content

Commit

Permalink
virtual error-to-string
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiaai committed Jan 27, 2024
1 parent 89bcf5c commit 999973c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ You can find the board schematics at [Makerspet repo](https://github.com/makersp

## Release notes

### v0.3.0
- virtual class methods
- ESP32 crash workaround

### v0.2.0
- example bugfix
- renamed classes
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=LDS
version=0.2.0
version=0.3.0
author=Ilia O. <[email protected]>
maintainer=Ilia O. <[email protected]>
sentence=Laser distance scan sensors (LDS/LIDAR) wrapper/controller for kaia.ai robotics platform
Expand Down
8 changes: 4 additions & 4 deletions src/LDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ class LDS {
void setInfoCallback(InfoCallback info_callback);
void setErrorCallback(ErrorCallback error_callback);

static String resultCodeToString(result_t code);
static String infoCodeToString(info_t code);
static String pinIDToString(lds_pin_t pin);
static String pinStateToString(lds_pin_state_t state);
virtual String resultCodeToString(result_t code);
virtual String infoCodeToString(info_t code);
virtual String pinIDToString(lds_pin_t pin);
virtual String pinStateToString(lds_pin_state_t state);

protected:
void postScanPoint(float angle_deg, float dist_mm, float quality, bool scan_completed);
Expand Down

0 comments on commit 999973c

Please sign in to comment.