hello, i’m new among you. There are 6 pins on the Mini Pix v1.2 board. I use 4 of these pinper as esc. 5 . I will connect the servo to the pin. What changes do I need to make in the parameter list? I would be glad if you help me . Thanks in advance. (4 motor drone)
Servo çalıştı , teşekkür ederim. Lakin ben bu servoyu 180 derece dönüp tekrar eski konuma gelmesini istiyorum. Kanal 7 ye atadım. Kanal 7 yi aktif ettiğimde servo 90 derece dönüyor ve öyle kalıyor. 180 derece dönüp tekrar eski konuma gelmesi için nasıl bir ayar yapmam gerekiyor bilgin var mı kardeş ?
If you just want manual control of the servo, you can just set it to RCINx.
Use MAV_CMD_DO_REPEAT_SERVO for that in mission or guided mode if you will do that autonomously.
param1 | float | Servo instance number |
---|---|---|
param2 | float | PWM (normally between 1000 and 2000) |
param3 | float | Cycle count |
param4 | float | Cycle time (in milliseconds) |
param1=5 (SERVO5)
param2=2000 (pwm value)
param3=1 (keep it open only one time)
param4=1000 (keep it open for 1 second)
Merhaba, MAV_CMD_DO_REPEAT_SERVO parametre listesinde böyle bir komut yok . Nereden ulaşabilirim ?
Hi, there is no such command in the MAV_CMD_DO_REPEAT_SERVO parameter list. Where can I get it?
It is not a parameter.
It is a command.
You give it as a mission item in the mission list or you send this command to the vehicle in GUIDED mode.
If you are using Mission Planner, add this as a mission item to your mission list something like this:
With this command, the servo motor will turn 180 degrees and start again. is it true ?
Depends on your servo range.
You need to find the exact PWM value that suits your application (that will turn the servo to 180 degrees).
This is why it is called DO_REPEAT_SERVO, not DO_SET_SERVO.
It will come to the previous PWM after waiting for some delay specified at the param4 as milliseconds.
well, can I observe the do repeat servo command by assigning it to the rc9 channel? so I want to test that the do_repeat_servo command works when I activate rc9.
No, AFAIK, it doesn’t work like that.
If you can manually trigger the servo output, why do you want the do_repeat_servo command in the first place?
Just set SERVO9_FUNCTION as RCIN9 and trigger it manually by configuring SERVO9_MIN and SERVO9_MAX before, if you want to do this manually.
For more, look at here and here.
Servo rc9 also works. At some point in the flight plan, the servo has to turn 180 degrees and come back to normal. this command is do_repeat_servo . this is OK.
When I activate rc9, only the servo opens.
Then program 2 DO_SET_SERVO commands each with the PWM value you need.
There are 3 tennis balls in the box. This will drop the balls autonomously at different points. I have developed a mechanism for this. For the mechanism to work, the servo must open 180 degrees autonomously and close again in a very short time.
I’ll try this on the flight plan, man. thanks
Ah, the Tennis ball drop for 2022 TEKNOFEST.
This is not a fail proof design, FYI. Instead, design a mechanism that will open hatches at certain degrees. After all what you need is set servo, not do repeat servo.
I think so . I think I’ll get the job done with a servo. but I couldn’t set the pwm values no matter what I did. I activate the control switch (rc9), the servo rotates only 90 degrees. I set pwm max min but nothing changed. still the same only 90 degrees…
I think you want to use combinations of a delay at the waypoint, a DO_SET_SERVO command with a PWM value (say 2000) to open the servo, a DELAY command for the cycle time and another DO_SET_SERVO command (say 1000) to return the servo to it’s initial state. You can test this easily in SITL (I did) and while a bit clumsy it seems to work with the commands available.