sonar Altitude Hold

Just mounted a sonar on my arducopter. When i use alt_hold mode it is not holding the alt at all. I've enabled sonar in cli and tested it, it all looks good. Any one know whats wrong??

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • the quad is good in manual (stabilize) mode. when i switch it Altitude hold, the quad begins to climb. how do i calibrate my throttle for hover using channel 7.

  • I had the same problem with sonar, was always very noisy  even the sonar was  disabled I had a rather large deviation in altitude fluctuating. This happens every time the telemetry was connected, if only the USB cable   was ok. I managed to eliminate interference between telemetry and sonar cable with small  ferrite ring on the telemetry close  to XBee. everything is fine now.even if the sonar is started less than 20 cm away from the ground.

  • i was having trouble to, couldnt get it hold , my problem was caused from changing modes to low to the ground

  • 3D Robotics
    we're only going to be supporting the XL MaxSonar EZ0 natively, as stated in the manual. Other sonars may work but need to be connected differently and may need different code calibration. People are free to configure their code for them, but the dev team can't support what we don't have.
  • I also have sonar problems that I put here, but could be useful here too.

    this is my info:

    ArduCopterMega 2.0.23

    LV EZ4 sonar

    about constant 340cm reading on test/sonar on CLI no matter where I put

     

    Any other one with sonar problems?

  • hey guys, i also have just wired up a sonar XL to the quad last night, setup using mission planner setup and said yes to sonar. i am not sure how i know it is working? in terminal there is no sonar testing? should it be working with just a fresh setup of mission planner and latest firmware? i have not done any fancy settings in my turnigy 9x, left it as it is. btw - thanks for the much needed help in the past and keeping up the good work, i finally had a maiden flight this morning and was exciting to get it off the ground after so many weeks :)
  • Developer

    And Alt hold mode will pick up the current throttle, just like NG.

     

    You're not giving out enough information to solve the issue.

    What are your PIDs? In the CLI, "setup" then "show"

    Please post it with your version number and any logs you have from Alt hold. CTUN is the correct one for alt.

     

  • Developer
    Geir, did you calibrate your throttle for hover?? That is done with channel 7 while flying.
  • A very good thing to do is load Ardupirate code - if your sonar is set right it will hold any altitude from 1 to 20 feet very accurately.  It is really fun to set it at 2 foot and zoom over rolling ground. There are still questions about this in the new code, but at least the ardupirate code will confirm your hardware.

  • which sonar and what altitude are you trying to hold.
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…