1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fpga: Clean up dino.cpp

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-10-27 10:47:34 +01:00
parent 2c02f01d17
commit 9111caf1ce

View file

@ -165,15 +165,11 @@ void DinoAdc::setRegisterConfig(std::shared_ptr<Register> reg,
// the DAC. Offset is a value to be added to the result of the multiplication.
// All values are IEE 754 single precision floating point values.
// Calibration for ADC filter with C=330pF and R=2,2kOhm
// FIXME: These values should be read from the FPGA or configured via the configuration file.
reg->setRegister(dinoRegisterAdcScale,
0.0016874999385349976F); // Scale factor for ADC value
reg->setRegister(dinoRegisterAdcOffset,
-11.365293957141239F); // Offset for ADC value
// Calibration for ADC filter with C=10nF and R=51Ohm
// reg->setRegister(dinoRegisterAdcScale,
// 0.0016106590470092842F); // Scale factor for ADC value
// reg->setRegister(dinoRegisterAdcOffset,
// -10.854544688476798F); // Offset for ADC value
reg->setRegister(dinoRegisterDacScale,
3204.7355379027363F); // Scale factor for DAC value
reg->setRegister(dinoRegisterDacOffset,