Git Product home page Git Product logo

Comments (2)

lucainiaoge avatar lucainiaoge commented on August 21, 2024

角度修正这里

两组数据的编码器差值是700,换算成角度为30.762°,而视觉测得的角度差为25°,所以可以认为视觉的角度小了1.23倍,于是相关的代码应该手动修改为:
hero.gimbal.YawAngle = yaw_motor.fdbPosition + PC_Data.yaw * 27.988f;

或许可以考虑一下动态修正
calibration_factor = (yaw.bias_angle - yaw.last_bias_angle)/22.755/(vision_angle-last_vision_angle)
hero.gimbal.YawAngle = yaw_motor.fdbPosition + PC_Data.yaw * calibration_factor;

from imuncle.github.io.

imuncle avatar imuncle commented on August 21, 2024

@lucainiaoge 非常好的想法!! 👍
但有一个小错误,在此更正一下:

calibration_factor = (yaw.fdbPosition - yaw.last_fdbPosition)/(vision_angle-last_vision_angle)
hero.gimbal.YawAngle = yaw_motor.fdbPosition + PC_Data.yaw * calibration_factor;

那个22.755应该去掉,另外bias_angle的本意是角度偏差,在这里指的是云台中间位置处的电机编码器值,是一个常量。

from imuncle.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.