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
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Jun 25
DIY Robocars via Twitter
Jun 25
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
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
More…