Closed liutairan closed 7 years ago
I saw that sonar was back in 1.7, but cannot find it in the configurator.
have you specified the sonar hardware ?
set rangefinder_hardware =
Allowed values: NONE, HCSR04, SRF10
@liutairan Yeah! use @stronnag command in the CLI to activate it!
Not sure if SURFACE mode is working though. A brave test volunteer?
I'll test it out in the next day or two
@stronnag @johnsilvester Thanks~ Just found it. I will test it when the weather get better.
I connected an HC SR04 to my spracingF3, entered the CLI command, SONAR tab turns red and nothing else.... any ideas?
@nerezw we are not wizards or prohets, you have to be much more specific. How you connected and what you entered. CLI diff
maybe?
I have an spracingF3. I connected sonar trigger to IO2/5(yellow) and sonar echo to IO2/6(green) and 5volts Vcc on HC-SR04. I entered : # set rangefinder_hardware and got rangefinder_hardware = NONE Allowed values: NONE, HCSR04, SRF10 and then
rangefinder_hardware set to HCSR04
and the save
the SONAR tab on the top of the screen turns RED the SANAR tab in the sensors screen can not be selected
can any body help
On 06 Jul,2017, at 10:44 AM, Paweł Spychalski notifications@github.com wrote:
@nerezw https://github.com/nerezw we are not wizards or prohets, you have to be much more specific. How you connected and what you entered. CLI diff maybe?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313334677, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn_6ISFGKMC6_UKLfmINVLuVney9rks5sLJ6IgaJpZM4ODvlL.
diff
please. HC-SR04 works with INAV 1.7.1 since I tested it few days ago. So looks like you are doing something wrong after all
Ok... Will have a close look
On Jul 6, 2017 13:09, "Paweł Spychalski" notifications@github.com wrote:
diff please. HC-SR04 works with INAV 1.7.1 since I tested it few days ago. So looks like you are doing something wrong after all
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313366581, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn0Xgx5js9mb1jO_25XGKbNeIbhK8ks5sLMBmgaJpZM4ODvlL .
here is the diff when i go into cli Am I missing anything
Entering CLI Mode, type 'exit' to return, or 'help'
feature -RX_PPM feature RX_SERIAL feature GPS
serial 1 2 115200 9600 0 115200 serial 2 64 115200 38400 0 115200
set acc_hardware = MPU6050 set acczero_x = 34 set acczero_y = 3 set acczero_z = -188 set accgain_x = 4098 set accgain_y = 4090 set accgain_z = 4082 set rangefinder_hardware = HCSR04 set mag_hardware = HMC5883 set mag_declination = -820 set magzero_x = -73 set magzero_y = -68 set magzero_z = 82 set baro_hardware = MS5611 set serialrx_provider = IBUS
profile 1
On 06 Jul,2017, at 1:09 PM, Paweł Spychalski notifications@github.com wrote:
diff please. HC-SR04 works with INAV 1.7.1 since I tested it few days ago. So looks like you are doing something wrong after all
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313366581, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn0Xgx5js9mb1jO_25XGKbNeIbhK8ks5sLMBmgaJpZM4ODvlL.
Try soldering to the 'Trig' and 'Echo' pins on the bottom side of an spf3
Will do... Thanks
On Jul 6, 2017 17:11, "johnsilvester" notifications@github.com wrote:
Try soldering to the 'Trig' and 'Echo' pins on the bottom side of an spf3
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313425683, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdnzcYOU5bTpvCthyr8MpC-yBguMqFks5sLPkdgaJpZM4ODvlL .
@nerezw Have you solved your problem? Did you use usb port to connect to the computer? If so, maybe you can try providing extra power to the board. At least for me, the board cannot provide enough power for the sonar if using USB connecting to computer. Once I have the battery connected or other power source connected, the sonar will work well; once I remove the battery, the sonar indicator will get red again.
I haven't solved it yet. I was going to try 1k resistors on tabs under the board as suggested by someone
On Jul 7, 2017 22:33, "Tairan Liu" notifications@github.com wrote:
@nerezw https://github.com/nerezw Have you solved your problem? Did you use usb port to connect to the computer? If so, maybe you can try providing extra power to the board. At least for me, the board cannot provide enough power for the sonar if using USB connecting to computer. Once I have the battery connected or other power source connected, the sonar will work well; once I remove the battery, the sonar indicator will get red again.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313786136, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn8J-aECiOJZzq8wc1XH_e733L3zCks5sLpX5gaJpZM4ODvlL .
On cleanflight sonar works ok with 1k resistor on sda and sdl. I tried with inav cli enabled, doesnt work its red.
Just like another post, I cannot find SONAR configuration. I also tried to use CLI feature SONAR, but it shows that invalid command. Is it removed again?