I've seen a couple of posts about this (most of them unanswered) in deprecated software sections. I would like to know the actual status of the command DO_SET_SERVO in the latest Arduplane 2.28 version.

I'm trying to script a mission using different PWM values between some waypoints and also at the beginning of the mission, and the output (in my case channel 6) remains at 0 no matter what. Anyone got this working with the same config ?

Thanks.

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

Join diydrones

Email me when people reply –

Replies

  • Sorry Doug, i've typed the text by hand here as the log was on the PC screen, yes it's the command #1... here is a copy :

    command #: 0 id:16 options:0 p1:0 p2:27744 p3:472374110 p4:60221480
    command #: 1 id:183 options:1 p1:6 p2:1700 p3:472363776 p4:60260652
    command #: 2 id:16 options:1 p1:0 p2:15000 p3:472361952 p4:60286512

  • Thanks Doug,

     

    Here is the CLI part :

    command #: 0 id:183 options:1 p1:6 p2:1700 p3:472363776 p4:60260652

    1700 is my PWM value and is written in parameter 2, i see that the first parameter is my channel 6 as specified.

    Here is the content of the command_description.txt

    Command |  ID  | Name | Parameter 1 | Parameter 2 | Parameter 3 | Parameter 4

    0xB7        | 183 | MAV_CMD_DO_SET_SERVO | Servo number (5-8) | On/off (1/0) | - | -

    Parameter 2 seems to wait for a binary on/off value... any idea where should i pass the PWM value ?

    Thanks.

  • Developer

    It was working last I checked, which was not recently.  I do know there has been at least one issue with Planner indicating that the command value (in this case pwm value) should be input in the wrong field.  You can check if planner is getting the value into the right field in eeprom by uploading a mission, then checking the mission in the CLI and seeing if the value is present and in the correct field per the command_description.txt file in the repo.

This reply was deleted.

Activity

DIY Robocars via Twitter
Sunday
DIY Robocars via Twitter
Saturday
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…