Q2 correction RL and LR addresses swapped, Q2 correction value multiplied by 0.5, ver. 2.18.1033

This commit is contained in:
Milan Hanajik 2018-10-17 14:41:07 +02:00
parent c23630a980
commit 7a74579c8b
2 changed files with 6 additions and 6 deletions

View File

@ -49,8 +49,8 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
{
const int Hz2CorrFactorsAddr = 0x1875; /// Used by Reset2HzCorrection(...) and Write2HzCorrection(...)
const int Q2CorrFactorsAddr = 0x1878; /// Used by ResetQ2Correction(...) and WriteQ2Correction(...)
const int Q2CorrFactorsAddrRL = 0x1878;
const int Q2CorrFactorsAddrLR = 0x1879;
const int Q2CorrFactorsAddrRL = 0x1879;
const int Q2CorrFactorsAddrLR = 0x1878;
private static readonly ILog log = LogManager.GetLogger(typeof(iPerlCommunicationForm));
protected static readonly ILog rfidDataLogger = LogManager.GetLogger("RfidData");
@ -1871,11 +1871,11 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
}
else if (q2CorrType == Q2CorrType.RL)
{
q2CorrRFlow = (byte)((int)Math.Round(q2Correction) & 0x000000FF);
q2CorrRFlow = (byte)((int)Math.Round(0.5 * q2Correction) & 0x000000FF);
}
else if (q2CorrType == Q2CorrType.LR)
{
q2CorrLFlow = (byte)((int)Math.Round(q2Correction) & 0x000000FF);
q2CorrLFlow = (byte)((int)Math.Round(0.5 * q2Correction) & 0x000000FF);
}
if (OpenPort(threadId, ihead) != 0) return CommErr.OpenPort; /// Open RFID port

View File

@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.18.1031.0")]
[assembly: AssemblyFileVersion("2.18.1031.0")]
[assembly: AssemblyVersion("2.18.1033.0")]
[assembly: AssemblyFileVersion("2.18.1033.0")]