From b9919c92be9e460cccc90bc3e7d3bdee41707f0f Mon Sep 17 00:00:00 2001 From: "Jaumann Dominik (IFAG DES SDF SCS EPE)" Date: Tue, 13 Apr 2021 11:54:05 +0200 Subject: [PATCH] Fixed the bug in the getAngleSpeed function --- src/corelib/TLE5012b.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/TLE5012b.cpp b/src/corelib/TLE5012b.cpp index 384833ca..2670d803 100644 --- a/src/corelib/TLE5012b.cpp +++ b/src/corelib/TLE5012b.cpp @@ -483,7 +483,7 @@ errorTypes Tle5012b::getAngleSpeed(double &finalAngleSpeed) } errorTypes Tle5012b::getAngleSpeed(double &finalAngleSpeed, int16_t &rawSpeed, updTypes upd, safetyTypes safe) { - int8_t numOfData = 0x5; + int8_t numOfData = 0x6; uint16_t rawData[numOfData] = {}; errorTypes status = readMoreRegisters(reg.REG_ASPD + numOfData, rawData, upd, safe);