Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zephyr elevon servo inconsistency with ardupilot parameters #22

Closed
41Mo opened this issue Apr 15, 2022 · 1 comment · Fixed by #24
Closed

Zephyr elevon servo inconsistency with ardupilot parameters #22

41Mo opened this issue Apr 15, 2022 · 1 comment · Fixed by #24

Comments

@41Mo
Copy link
Contributor

41Mo commented Apr 15, 2022

Servo reverse inconsistency

In zephyr model.sdf servos determined as

``

      SERVO1_FUNCTION   77 (Elevon Left)
      SERVO1_MAX        1900
      SERVO1_MIN        1100
      SERVO1_REVERSED   0
      SERVO1_TRIM       1500

      pwm:          =>  [1100, 1900] 
      input:        =>  [0, 1]
      offset: -0.5  =>  [-0.5, 0.5]
      scale:   2.0  =>  [-1.0, 1.0]
      scale: 0.524  =>  [-0.524, 0.524]

``

But gazebo-zephyr.parm in ardupilot assuming, that

SERVO1_REVERSED = 1 SERVO2_REVERSED = 1

@srmainwaring
Copy link
Collaborator

@41Mo - yes you're right. I forget why the elevon servos are flipped in the example here - I think this matches settings from the original repo and at some point the SITL params may have been reversed?

We should get them back into alignment so you don't need to edit the params loaded when your run sim_vehicle.py ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants