mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 11:29:51 +03:00
Added a new test with real logs from FLVSS. It seems there is a bug on
the FLVSS :(
This commit is contained in:
parent
58ed329ac2
commit
6d18820b53
1 changed files with 11 additions and 0 deletions
|
@ -270,6 +270,17 @@ TEST(FrSkySPORT, frskySetCellVoltage)
|
||||||
EXPECT_TRUE(checkScreenshot("one_sensor_votages_screen"));
|
EXPECT_TRUE(checkScreenshot("one_sensor_votages_screen"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(FrSkySPORT, StrangeCellsBug)
|
||||||
|
{
|
||||||
|
memclear(&frskyData, sizeof(frskyData));
|
||||||
|
uint8_t pkt[] = { 0x7E, 0x48, 0x10, 0x00, 0x03, 0x30, 0x15, 0x50, 0x81, 0xD5 };
|
||||||
|
EXPECT_EQ(checkSportPacket(pkt+1), true);
|
||||||
|
frskySportProcessPacket(pkt+1);
|
||||||
|
EXPECT_EQ(frskyData.hub.cellsCount, 3);
|
||||||
|
EXPECT_EQ(frskyData.hub.cellVolts[0], _V(004)); // Aie, it seems a FLVSS bug :(
|
||||||
|
EXPECT_EQ(frskyData.hub.cellVolts[1], _V(413));
|
||||||
|
}
|
||||||
|
|
||||||
TEST(FrSkySPORT, frskySetCellVoltageTwoSensors)
|
TEST(FrSkySPORT, frskySetCellVoltageTwoSensors)
|
||||||
{
|
{
|
||||||
//telemetryReset();
|
//telemetryReset();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue