1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Pitch Roll and Yaw combinaison for a circle

Discussão em 'Python' iniciado por Stack, Setembro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to make my drone a circle. So far I'm using functions to describe movement

    t = time.time() - self.time_beginning
    amplitude = 10.0
    omega = 0.5

    pitch = amplitude * math.cos(omega * t)
    roll = amplitude * math.sin(omega * t)
    yaw = 0.0
    thrust = 0.5
    self.send_attitude_command(roll_deg=roll, pitch_deg=pitch, yaw_deg=yaw, thrust=thrust)


    and in the function send_attitude_command i use quaternions to send commands to the drone (SET_ATTITUDE_TARGET) from Ardupilot. I am wondering if I could just set a combination of pitch roll and yaw, constants so that the drone would make a circle ? Like

    roll = 10.0
    pitch = 10.0
    yaw = 0.0


    And if you can have a combination of Pitch Roll and Yaw, how do you predict what the circle would look like ?

    Continue reading...

Compartilhe esta Página