DeviationTX / deviation

Custom firmware for RC Transmitters
http://www.deviationtx.com
GNU General Public License v3.0
247 stars 153 forks source link

Flysky AllCell telemetry regression #956

Closed stronnag closed 4 years ago

stronnag commented 4 years ago

Using T8SG V2 PLUS with FLysky FS-ia6B with either FS-CVT01 voltage sensor or iNav CC3D VBAT IBUS telemetry, the following is observed:

Published nightlies:

Latest:

On e90be75, reverting b5e8119454d0e3ad904001fd7342388f947e64e5 results in AllCell being displayed correctly again.

vladislavy commented 4 years ago

Before b5e8119 : SENSOR_CELL_VOLTAGE = 0x03 after : SENSOR_EXTV = 0x03 - not used anywhere SENSOR_CELL_VOLTAGE = 0x04

vladislavy commented 4 years ago

You can try comment out both lines and add: SENSOR_CELL_VOLTAGE = 0x03, // Avg Cell voltage

stronnag commented 4 years ago

Thanks, I will try that.

stronnag commented 4 years ago

That fixes it, thank you.

vladislavy commented 4 years ago

I think SENSOR_EXTV (and FS-CVT01 sensor) has to be assigned to "Volt3". Can you say is "Volt3" box used for any sensor? Telemetry monitor -> Bat -> line 3.

stronnag commented 4 years ago

With e90be75

vladislavy commented 4 years ago

Anyway FS-CVT01 data has not to be at AllCell, it's for cell voltage sensor. But, TelemV1 (Volt1) is for Rx voltage. I don't understand how FS-CVT01 data can be at two places, Volt1 and AllCell, it's for different sensors.

stronnag commented 4 years ago

Now you have me thinking that the bench test bec is broken and passing VBAT through. Lucky the RX survived. In which case VBAT is nowhere to be seen in the latest nightly. To be confirmed later.

vladislavy commented 4 years ago

You can try next nightly build. I route FS-CVT01 data to AllCell, since it's unlikely that two external voltage sensors will be used together.

stronnag commented 4 years ago

I will do, but as far as I can see (having removed the bad bec), the only working solution (albeit for my TGS8V2+ / IA6B / (FS-CVT01 | iNav VBAT) appears to be reverting b5e8119. Unfortunately, due to the faulty BEC, https://github.com/DeviationTX/deviation/issues/956#issuecomment-584257915 is not valid.

vladislavy commented 4 years ago

I added support for SENSOR_EXTV = 0x03, so I think all will work as before b5e8119.

stronnag commented 4 years ago

I tested current head / 4700708 and there is no VBAT, just TX voltage: nightly whereas, reverting b5e8119 gives the expected: revert front page, telemetry voltage alerts then working again.

vladislavy commented 4 years ago

I have assigned SENSOR_EXTV = 0x03 (FS-CVT01) to AllCell. Scroll Telemetry monitor page, you have to see battery voltage lower, at Bat->line 5. If you use Cell1 for telemetry alerts, change it to AllCell. Cell1-Cell6 used for different sensor (SENSOR_CELL_VOLTAGE = 0x04).

stronnag commented 4 years ago

Bat line 5 shows the RX (BEC) voltage, same as Bat line 1.