Commit Graph

14 Commits

Author SHA1 Message Date
Andrew Tridgell fb0b32887d AP_Rangefinder: fixed scaling on PWM driver and enable SCALING parameter
this fixes a bug introduced here:

  https://github.com/ArduPilot/ardupilot/pull/18829

and allows the scaling of PWM rangefinders to be adjusted
2022-06-21 19:41:34 +09:00
Sebastian Quilter 0f7c3e3964 AP_RangeFinder: make rangefinder ranges m rather than cm 2021-10-21 21:28:53 +11:00
Peter Barker 72b49efc78 AP_RangeFinder: create and use new AP_HAL::PWMSource object 2020-09-08 16:10:50 +10:00
Andrew Tridgell b102fd6b59 AP_RangeFinder: use GCS_SEND_TEXT() 2020-04-29 07:36:55 +10:00
Randy Mackay 7d8952a48a AP_RangeFinder: fix offset param for PWM driver 2020-02-03 19:32:34 +09:00
Randy Mackay 2bdb2f67ab AP_RangeFinder: PWM driver adds offset param value 2020-01-18 14:15:20 +09:00
Peter Barker 82db4383d4 AP_RangeFinder: use enum-class for Status 2019-11-09 08:01:53 +11:00
Randy Mackay 84b502b0c4 AP_RangeFinder: resolve gcs::send_text compiler warning 2019-07-30 09:02:39 +09:00
Peter Barker b0c65b9014 AP_RangeFinder_PWM: correct integer division issue 2019-02-20 17:50:46 +11:00
Dmitri Ranfft 5eff01a86f RangeFinder: allow up to 10 range finders to be used at once 2019-02-04 11:08:47 +09:00
Peter Barker f037629fc3 RangeFinder: understand stop pin for AP_RangeFinder_PWM backend 2019-01-10 16:28:14 +11:00
Peter Barker c2b334eaad AP_RangeFinder: PWM: take an average of any readings accumulated in irq 2018-11-08 21:03:35 +11:00
Andrew Tridgell 76a2cd1540 AP_RangeFinder: set pin to input before attaching interrupt
this fixes input on AUX6 on CubeBlack
2018-11-08 18:25:14 +11:00
Peter Barker 186ce80827 AP_RangeFinder: add pwm backend 2018-11-07 08:59:19 +11:00