mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_HAL_Linux: AnalogIn_IIO: add scale for minlure
This commit is contained in:
parent
f56a80cd80
commit
4e034cd2e1
@ -9,11 +9,14 @@
|
||||
|
||||
#define IIO_ANALOG_IN_COUNT 8
|
||||
#define IIO_ANALOG_IN_DIR "/sys/bus/iio/devices/iio:device0/"
|
||||
|
||||
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF
|
||||
// Note that echo BB-ADC cape should be loaded
|
||||
#define IIO_VOLTAGE_SCALING 0.00142602816
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI
|
||||
#define IIO_VOLTAGE_SCALING 3.0*1.8/4095.0
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_MINLURE
|
||||
#define IIO_VOLTAGE_SCALING 2.0 / 1000
|
||||
#else
|
||||
#define IIO_VOLTAGE_SCALING 1.0
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user