Abantech / Efficio

1 stars 1 forks source link

Positional Data Input #9

Closed james-h-stephens closed 7 years ago

james-h-stephens commented 8 years ago

Create abstract positional classes for determining location, elevation, and heading.

joeabsoftdev commented 7 years ago

Would you like this portion to be generic, device-specific, or to be and/or include a device selector coupled to a specific-to-generic positional data input-to-middleware converter?

james-h-stephens commented 7 years ago

We should create a middleware device-agnostic interface for representing this kind of data. Then, we can create wrappers around specific devices to have them conform to these interfaces.

For example, the Altimeter sensor abstract class has a virtual method that retrieves the altitude from a given sensor. The SampleAltimeter class is an concrete class that extends the Altimeter class. When queried, the SampleAltimeter class will always return a value of "3 meters".

You can see that the Drone asset that was also included as a sample is an asset containing multiple sensors, including the SampleAltimeter. Let me know of those clear it up.

joeabsoftdev commented 7 years ago

That answers the high-level structure for me. Can we engineer a converter to automatically handle device-type recognition and pathway modulation (and hopefully a little bit of optimization) between a group of wrappers on both sides of the central middleware?

james-h-stephens commented 7 years ago

@joeabsoftdev I'll be honest, I didn't understand anything you just said haha

james-h-stephens commented 7 years ago

There seems to be several different positional data types. I will mark this more vague request as closed and will create new feature requests for the different positional data types