Closed DTTerastar closed 1 week ago
The changes in this pull request introduce a new class LocatorConfig
to the ESPresense.Models
namespace, enhancing the configuration options for location algorithms. The State
class is modified to utilize a list of LocatorConfig
instances, allowing the GetScenarios
method to generate scenarios based on multiple algorithms, including new options. Additionally, the configuration file config.example.yaml
is updated to include a new locators
section that specifies properties for the algorithms, although there is a potential duplication in the entries.
File | Change Summary |
---|---|
src/Models/Config.cs |
Added class LocatorConfig with properties: Algorithm , Floors , and Props . |
src/Models/State.cs |
Added private field _locators of type List<LocatorConfig> . Modified LoadConfig and GetScenarios methods to utilize _locators . |
src/config.example.yaml |
Introduced new locators section with algorithms nadarayaWatson and nearestNode , including their properties. |
State
class involve the use of the LocatorConfig
class, which is relevant to the new location algorithms introduced in the Scenario
class, enhancing the overall functionality related to location tracking.🐇 In the meadow, algorithms play,
New locators join the fray.
WithNadaraya
andNearestNode
,
Scenarios bloom, our paths unfold.
Configs updated, options galore,
Hopping forward, we explore! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
LocatorConfig
class for enhanced location algorithm configurations.locators
section in the configuration file allows for detailed specification of localization algorithms and their properties.Bug Fixes
locators
section of the configuration file.