makerplane / FIX-Gateway

Flight Information eXchange Gateway
GNU General Public License v2.0
9 stars 21 forks source link

CAN-FIX Plugin ID Mapping #18

Closed birkelbach closed 5 years ago

birkelbach commented 5 years ago

Currently the mapping has an item for FUELQ. This should be FUELQ1 but for some reason FUELQ get's mapped to FUELQ1 in the database. It's probably best if the mapping change to some kind of external configuration file anyway.

birkelbach commented 5 years ago

The problem has to do with the way we use the index from the canfix message. The mapping system adds 1, 2, 3 etc to the end of parameters that have indexes associated with them. Since we can have multiple fuel quantities for each 'node' (a single node could send multiple tank levels.) The real problem is the database definition needs to have FUELQ11, FUELQ12, FUELQ21, etc. Or we need to figure out a better way to define the mapping for these things.