Commit Graph

11 Commits

Author SHA1 Message Date
Andrew Tridgell b075f8735f SITL: moved airspeed pin to pin 1
keep it separate from the sonar, allowing both to be used at the same time
2013-11-28 21:44:05 +11:00
Andrew Tridgell c7df0eaf2a SITL: added battery voltage and current
assume 3DR brick
2013-10-03 11:16:14 +09:00
Andrew Tridgell bc3249fada SITL: fixed Vcc voltage 2013-09-12 16:34:38 +10:00
Andrew Tridgell a587b1140a AP_HAL: added voltage_latest() interface
this will be used for reading the 5V rail
2013-09-12 13:23:04 +10:00
Andrew Tridgell a5b20b4dfc AP_HAL: removed scaling factor on analog sources
these are not use anymore, as voltage_average() is used instead
2013-05-13 15:29:42 +10:00
Andrew Tridgell 589b8cdb58 AP_HAL: added voltage_average_ratiometric() call to AnalogIn
this is for ratiometric sensors such as the 3DR airspeed sensor and
the Maxbotix analog sonar
2013-05-13 15:12:43 +10:00
Andrew Tridgell b1c27407a2 AP_HAL: added voltage_average() interface to AnalogIn
returns voltage in Volts, using averaged reading over samples.

Where possible this should be auto-scaled against a known reference
voltage
2013-03-03 16:16:01 +11:00
Pat Hickey 4c715bfd04 AP_HAL_AVR_SITL: add Util driver, fix deprecated deps on HAL_AVR.h 2012-12-20 14:52:37 +11:00
Andrew Tridgell abbe37be37 SITL: added emulated airspeed sensor on a pin 2012-12-20 14:52:33 +11:00
Andrew Tridgell 46f7c9e92b SITL: added basic analogin implementation 2012-12-20 14:52:33 +11:00
Andrew Tridgell 98ead51801 SITL: fill in a lot more of the AP_HAL SITL backend 2012-12-20 14:52:30 +11:00