Implement proper UWB initialization and fix range data parsing

- Replace high-level UWBHelper calls with direct AT command sequence
- Add hardware reset on every startup for reliable operation
- Implement proper timing delays between AT commands
- Add configuration verification with AT+GETCFG
- Complete rewrite of parseRangeData to handle multiple devices correctly
- Fix anchor/tag behavior: anchors only show tags, tags show all anchors
- Add isAnchor parameter to parseRangeData for device-specific logic
- Maintain backward compatibility with default parameter values
This commit is contained in:
martin 2025-08-25 19:46:51 +02:00
commit 1cb8968b93
3 changed files with 164 additions and 61 deletions

View file

@ -63,7 +63,7 @@ public:
String getReporting(); // AT+GETRPT?
// Range Command (3.15)
bool parseRangeData(String data, DeviceData devices[], int maxDevices);
bool parseRangeData(String data, DeviceData devices[], int maxDevices, bool isAnchor = true);
bool parseDetailedRangeData(String data, RangeResult* result);
// Sleep Command (3.16)