Task #447

Feature #161: Support the FrSky Sensor Hub Protocol

Redo Hub Id and Hub Channel id concept

Added by Espen Solbu almost 6 years ago. Updated almost 6 years ago.

Status:NewStart date:05/15/2012
Priority:NormalDue date:
Assignee:Espen Solbu% Done:

0%

Category:-Spent time:-
Target version:3.0 FrSky hub and sensors

Description

Add concept of globally unique channel id, and hub internal channel id

Should possibly be something like
HUB_ID=1
CHANNEL_ID_RPM=1

> Globally unique Channel ID's from -10001, -10002, -10003
(Globally unique Channel ID = (HUB_ID*-10000)
hub internal Channel_id)

addChannel should take channel with hub internal channel id, modify this channel to have new id
getChannel should take hub internal id, and retrieve the proper channel

Question: how do we solve getChannels()? this would return channels with globally unique channel id and not hub internal channel id

Option:
use hub internal id as key in mChannelMap, while channels objects's id is the globally unique one. Need investigation

History

#1 Updated by Espen Solbu almost 6 years ago

  • Parent task set to #161

Also available in: Atom PDF