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:
parent
7554b98d40
commit
1cb8968b93
3 changed files with 164 additions and 61 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue