Skip to content

Commit 4c74541

Browse files
authored
add tip for 1.4.1 and above in calibration (#138)
1 parent cd0ce00 commit 4c74541

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • source/getting-started/control-with-amdc/current-sensor-cal

source/getting-started/control-with-amdc/current-sensor-cal/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ double offset = 4.739; // [V], offset from curve fit. This is a variable so that
4242
double current_measurement; // Actual current measurement, to be used in control algorithm
4343

4444
current_measurement = (sensor_reading - offset)*INV_GAIN; // sensor_reading is the raw measurement and needs to be obtained by the user
45+
```
4546

47+
```{tip}
48+
In AMDC firmware versions 1.4.1 and above, the amds driver has a built in function `amds_convert_voltage()` to streamline this process. Default offset and gain values for each different sensor card are also included.
4649
```
4750

4851
## Recalculate Offset At Startup

0 commit comments

Comments
 (0)