Throttle Control on ardupilot

Hi all,Not sure if im the right place or if this information is somewhere else that i havnt seen yet....but?OK did all my testing on an easystar, got it all working sweet.....as in Tx on the floor watching my easy drift happily around the sky whilst rolling a cigarette.....height, speed, Alt, all goodtransfered the whole shabang over to the Actaul UAV, ok many changes required in teh setup, but the principles are all the same...However......In the new UAV,a) its much fasterb) its much more agile (In a non vague floaty easystar way)On the ground it throttles up in WP mode..but..heres the big but..in the air, the throttle deos not work AT ALL!Checked the .h file found the M/S setting, changed from 22 to 50 as this is closer to the cruising speed...Get the UAV up , switch to WP mode, then nothing, just this protracted glide with no power, manual again ...fine....shes navigating & stabilising, but no throttle control.Is my board having a spaz...?have i knackered something in teh code?Have i calibrated it wrong or something?Is anyone else having this problem?I did kinda run this by Chris, but maybe its something others are experiencing?Any thoughts guys?regards,Mike.

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

Join diydrones

Email me when people reply –

Replies

  • Developer
    I had a question about the throttle code. The PI loop outputs a percent for throttle, but the throttle_max values used to constrain is a PWM value of 1800. Is this a mistake?

    throttle_output = constrain(throttle_output, 0, throttle_max);
    throttle_output = constrain(throttle_output, 0, 1800);

    throttle_output is sent directly to pulse_servo_0 and limited to 100;

    void pulse_servo_0(long porcent)//Will convert the angle to the equivalent servo position...
    {
    porcent=constrain(porcent,0,100);
    ...
    }
  • Hi Doug,

    Yes every time, im wondering if i have done summet stupid to my ardu to be honest, we get allot of odd behaviours, i do have another AP board, might put that in (I think i gave this one a hard time learning)

    To add insult to injury, its been persisting down all day here....when it did stop raining for a short while it was so damp i didnt dare test it, after the problems i had with sensors and damp last time...

    I really hate the UK weather!!!!! In fact we are thinking of moving everything to Italy in the next year or so,, a few things have to come to an end first then were free to move...sun and warmth!!! sounds awfull...lol...

    Is there a way to offset teh -276 on the senor?

    if not i will have to continue to use teh 231 version...

    To be fair, trhe errors are rarely in Jordies code, its normally muppetry on behalf of the user (me)


    regards,
    Mike
  • Hi Guus,

    yes this is what i wa wondering....but i changed from 2.2.... to 2.3.1v yesterday, copied all setting accross, took off, found the roll pitch were reversd, landed, reversed them again....and it was fine....the h file is being read....

    the worst thing, is.....its pooring with rain!.....HOW FRUSTRATING!!!!!!, dont know if it is in holland, but i soo need to get this bit sorted..

    OK, will have another go this morning, and see if is summet stoopid....i do have a few spare boards, might try one of those see if there is a hardware fault....but runnnig out of ideas now...

    Thanks for staynig with me on this... its now driving me NUTS......



    regards,

    Mike,
  • T3
    Hi Mike,

    If you connect the FTDI cable to the ardu and install the ground station software on your computer,
    Then you can read the airspeed from the ground station when you blow in to the pitot.
    This helped me one time when the throttle was not responding the right way,found that the sensor returned a airspeed of -950 m/s

    Regards,
    Guus
  • 3D Robotics
    This could be a lot of things, but the first thing I'd check is if your throttle channel is reversed on this aircraft/RC setup.
  • Also, just came to mind, when checking the telemetry down....

    I noticed that the throttle setpoint was not fluctuating in the way that it did on the easy.....


    might be nothing ..might be everything.....

    ah and ....the other change was no pitot tube on the easy, on the UAV it is quite long??? mean anything?


    thoughts?
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @sunilmallya: Representation Learning +Instance Transfer to learn new reward functions along with advantage based filtering of new exper…
3 hours ago
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
RT @f1tenth: Sliding (autonomously) into the weekend like ... 🤖😎 #f1tenth #robots #AutonomousVehicles @OpenRoboticsOrg @NVIDIAEmbedded @Aut…
Apr 25
DIY Robocars via Twitter
RT @chr1sa: One of the problems with autonomous car racing is that watching software drive is not a very exciting spectator sport. To help…
Apr 25
DIY Robocars via Twitter
RT @SmallpixelCar: Replaced AGX Xavier with @NVIDIAEmbedded Jetson Xavier NX. Now both cars look fast and clean https://t.co/jlcoY2EjZf
Apr 25
DIY Robocars via Twitter
RT @chr1sa: Yesterday we had a record number of competitors (36) in our monthly @DIYRobocars virtual autonomous car race. We kept it going…
Apr 25
DIY Robocars via Twitter
Apr 16
DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
Apr 11
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
Apr 11
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Apr 7
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Apr 7
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
@GrantEMoe @circuitlaunch Update: we're doing it on Sunday (4th) at 11:00am instead
Apr 2
More…