Giter Club home page Giter Club logo

arduino-px4flow-i2c's People

Contributors

eschnou avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-px4flow-i2c's Issues

No need to wait after Wire.requestFrom()

When the Wire.requestFrom() returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library.

There is no need to wait for something after a call to Wire.requestFrom().

The function wait() in the file "arduino-px4flow-i2c/PX4Flow/PX4Flow.cpp" is not needed.

You can write your code like this:

  // request 22 bytes from the module
  Wire.requestFrom(PX4FLOW_ADDRESS, 22);    

  // read the data
  frame.frame_count = read16();
  ...

or something like this:

  // request 22 bytes from the module
  Wire.requestFrom(PX4FLOW_ADDRESS, 22);    

  if (wire.available() != 22) {
      return false;
  }

  // read the data
  frame.frame_count = read16();
  ...

Also draining the buffer (removing any remaining data) is not needed. The Wire library uses packets of data and starts with a cleared buffer before doing a I2C transaction.
There was a bug in the library for the SAMD processors that a buffer was not cleared, but that bug has been solved a year and a half ago.

velocity_x and velocity_y return nan

Hi, I have been trying to use the pose_estimate example to estimate the position of my vehicle but sometimes the problem is that the velocity_x and velocity_y returns 'nan' and I can not figure out why. Can you please help me? Thanks a ton in advance!

position

can i get position x,y or velocity vx,vy without the ultrasonic ?

External Sonar

Hi
Could i not use the built in sonar and use an external one to get the Ground distance data?
so i can replace the sensor.quality_integral with the readings from the external sonar in the pose_estimate.ino code

also should i only take when the readings when the quality is more than 100 as sometime it hit zero
if (quality > 100)

Pose_estimate type

It seems like you havent initialize the type in pose_estimate.ino
` x_rate = sensor.gyro_x_rate_integral() / 10.0f; // mrad

y_rate = sensor.gyro_y_rate_integral() / 10.0f;       // mrad

flow_x = sensor.pixel_flow_x_integral() / 10.0f;      // mrad

flow_y = sensor.pixel_flow_y_integral() / 10.0f;      // mrad  `

PX4Flow i2c issue.

Hi there,

Im trying to add px4flow(Lucas-Kanade method custom firmware) to pixhawk(3.3rc1) I think, Its work :)

My question:

1.Use USB connect PIX : I can in Mission Plannner's user items "opt_m_x" and "opt_m_y" for optical flow .

2.Use Battery powered : Can't in Mission Plannner's user items "opt_m_x" and "opt_m_y" for optical flow.

But only reset PIX . I can in Mission Plannner's user items "opt_m_x" and "opt_m_y" for optical flow.

ultrasonic

the ultrasonic MB1043 works alone properly but when it's put in the px4flow chip it doesn't give ground distance

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.