|  | 
 
上一篇:「御」風而行的空中舞者 - DJI Mavic 基本設定篇下一篇:Parrot Bebop + Skycontroller 四軸高清 空拍機問題請教| 
 PX4FLOW 版本是v1.3.1 有聲納版本
 使用I2C連接PIXHAWK
 聲納設根據這個網站的引導設定
 https://www.lambdrive.com/depot/ ... ot/OpticalFlow.html
 
 # Analog=1, I2C=4
 RNGFND_TYPE=1
 # Analog output on EZ4 is linear
 RNGFND_FUNCTION=0
 
 # Analog input pin on ADC 6.6V socket is mapped to virtual pin 15.
 # If you've connected the sonar to ADC 3.3V socket (using voltage converter), it will either be virtual pin 13 or 14 (ADC 3.3V socket has 2 analog input pins combined).
 RNGFND_PIN=15
 
 # EZ4 is linear and ratiometric
 RNGFND_FUNCTION=0
 RNGFND_RMETRIC=1
 
 # Don't connect stop pin (sonar will always be on)
 RNGFND_STOP_PIN=-1
 
 # The wiki says you should set this to 7m for EZ0 and EZ4, but that's for XL-MaxSonar series. HRLV-Max-Sonar-EZ4 on PX4FLOW only mesures up to 5m.
 RNGFND_MAX_CM=500
 # EZ4 on PX4FLOW won't return reliable data if the distance is closer than 30cm.
 RNGFND_MIN_CM=30
 
 # Adjust the following according to the description given by Paul Riseborough below.
 # http://diydrones.com/forum/topic ... 3AComment%3A2137979
 
 # Distance in cm of the PX4FLOW unit from the ground.
 RNGFND_GNDCLEAR=2
 # In theory, the voltage range should be between 0.293V and 4.885V (300mm to 5000mm) when Vcc = 5V for the EZ4 sonar on PX4FLOW.
 RNGFND_OFFSET=0.293
 # Acroding to the datasheet, EZ4 will return 4.885V at 5m when given 5V Vcc.
 # 5m / 4.885v
 RNGFND_SCALING=1.02354
 
 
 設定完後聲納的電壓跟距離都是0沒有任何反應
 請問前輩們我是在哪一步驟有錯誤?
 謝謝!
 | 
 |