Servers by jDrones

Cheerson CX-OF low cost optical flow sensor testing


(ppoirier) #41

Yes altitude holds by tfmini
Set ekf3 altitude source to rangefinder

(rmackay9) #42

Nicely done. Strange that EK2 didn’t work, it should.

I just want to be clear to others reading this thread that I recommend EKx_ALT_SOURCE be left at the default of 0 (for barometer). It should not be set to “1” for Rangefinder.

In @ppoirier’s test environment which is indoors with a flat floor it’s perhaps OK but in 99% of situations I do not recommend setting the altitude source to range finder. I dealt with yet another user support issue yesterday caused by a user setting this parameter to range finder. I feel like I’m constantly fighting a battle to stop people from changing this parameter because it rarely goes well.

(ppoirier) #43

Yes I agree about usage of the rangefinder as the primary altitude source is not recommended for normal flights.

I generally start tests in stabilize , doing the usual trim and PID land, check the logs, confirm rangefinder reading and stability and then use it as primary source.

Start in stabilize, takeoff and then switch to alt hold, check for stability and response. Land and takeoff in alt hold mode to confirm.

As for loiter, set ekf home , hold quad a simulate a flight , confirm that vehicle movements ate showned on map. Takeoff in AltHold , make sure vehicle is stable and switch to Loiter, get ready to switch back.

Last test I did is takeoff in guided an did different guided “fly to” and land.

(Weiyao Lu) #44

Any kind soul able to nudge me in the correct direction for downloading 3.7 Dev?
I have a few CX-OF sensors that I would love to integrate to a pixracer to offer more test results.

Thanks yall! (Happy 2019 everyone!)

(rmackay9) #45


We included CX-OF support in Copter-3.6.4 so it’s available in the stable release. I’ll update the notes above, thanks!

(Weiyao Lu) #46

awesome sir!
I’ll load it up to get it tested!

(Andrea Belloni) #47

What I described above as a strange behavior:

… when I switch from Loiter to FlowHold I see the Copter oscillate quickly in roll and pitch (like if the Roll / Pitch PID was bad tuned), then if I move the quad a little bit around (with RC) the oscillation disappear and the Copter remain stable.

should be a normal behavior from what I read in the wiki:

Because no Lidar is used in this mode, the optical flow sensor is used both to estimate the vehicle’s height above the surface and the vehicle’s speed. Soon after takeoff or after there have been large changes in the height above the surface the vehicle may wobble as it learns the new height and velocity.

(ppoirier) #48

Well, that is a proof that the wiki is pretty complete , thanks to @rmackay9

BTW I see you can adjust parameters