Feature #426

create SensorValueTranslator interface and impl per sensor + factory

Added by Hans Cappelle over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:05/03/2012
Priority:NormalDue date:
Assignee:Hans Cappelle% Done:

100%

Category:Flexible User ProtocolSpent time:-
Target version:3.0 FrSky hub and sensors

Description

Strategy pattern To Replace switch in hub class. Factory using enum for selection.

For combined values translator can collect the 2 and concat to return a single. Va'ue like channel expects.

in later releases custom translators can be supported.


Related issues

Related to Task #398: Proper construction of before.after values in FrSkyHub Closed 04/20/2012

Associated revisions

Revision 405
Added by Hans Cappelle over 6 years ago

closes #426 implementing strategy pattern for user data value translation

History

#1 Updated by Hans Cappelle over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset r405.

Also available in: Atom PDF