AP_Periph 1.0.0 stable released

Well my TF mini plus came in this morning. Got it wired up to the MRO F303 board.

Here are my can settings

And In Mission Planner

image

And this is what I am greeted with in the data window :frowning:

At this point I am going to shelve this project until someone else can give the Mini Plus a try. Not sure what else to try.

You set the rangefinder address in MP same as on the node? 11 and 11.
shelve that yes i see you did…
which flight controller?

The first screen shot is the CAN node settings
The second is Mission Planner

As you can see both are set to 11

CUAV V5+ flight controller. And yes CAN is enabled on both physical ports, as I have a CAN GPS that I test with

Dave isn’t the rangefinder address 16 per the documentation from Benewake.
Also is yours an I2C rangefinder…becuase the message your getting is the same as me and those params are identical except for the address.

Negative. Its a serial rangefinder and you can pick and choose what you want for an address

Boo… you beat me to it. I am still waiting for mine to be delivered.

1 Like

I now have the TFmini Plus working on the MRO F303 board. @ukmook offered me his firmware for the board.

As soon as I loaded his firmware Boom… it all worked.

Thanks for all the support and help @ukmook

1 Like

No worries Dave glad it worked for you…

@ukmook - Are you using the latest firmware released by Tridge or what modification have you made?

https://firmware.ardupilot.org/AP_Periph/beta/f303-Universal/

It’s inline with latest master but with a mod that made it work on my own f405 board, so as @smartdave was having a few issues I built it using the same mod applied. It’s really not much at all.

I’m not a coder so would rather @tridge take a look but this is what worked for me…

And works for me as well :smiley:

1 Like

The Benewake TFmini Plus UART mode works fine using the beta universal firmware and the mRo CANNode. You need to disable the GPS by setting GPS_TYPE = 0 and the only other required parameter was RNGFND1_TYPE = 20

Switching to I2C to test that configuration.

Thanks Phil. I have a second F303 Node that I will try with this setting change

The changes are not needed. I think the issue is that @smartdave didn’t disable all the other users of the uart. In the f303-Universal firmware there are several drivers that use the single uart. To use a serial rangefinder you need to at least set GPS_TYPE=0 so that it doesn’t try to use that uart as a GPS. What your patches do is shift to use a different uart, one that the GPS isn’t fighting over.
This is the downside of the universal firmware, it needs to be configured for what device you actually want to use it for. Key params to disable devices are:

  • GPS_TYPE=0
  • COMPASS_ENABLE=0
  • BARO_ENABLE=0
  • RNGFND1_TYPE=0
  • ADSB_BAUDRATE=0

that would disable all of the devices, then you should enable just the ones you want, knowing that you can’t have two serial devices as there is just one uart.
I just tested a serial rangefinder with the 1.1.0 beta this morning and it works fine. I just needed to set GPS_TYPE=0 and RNGFND1_TYPE=8 for a LightwareSerial rangefinder.
Cheers, Tridge

@tridge Would it make sense to have all the devices set to disabled by default. That way you only enable what you want?

I thought of that, but as GPS is by far the most common I decided to enable it, and if I disabled it now it would break some existing users.
I just think we need better wiki docs for this. Any doc volunteers?

@Matt_C a correction to your first paragraph. You do not set the orientation in the can node, you set it to zero and then set the actual orientation in the flight controller

2 Likes

Thanks for the feedback and testing everyone, I’ve now released 1.1.0 stable. Enjoy!

@tridge I did the UAVCAN docs with @hwurzburg so I don’t mind writing it up. Thanks for taking the time to point out a few things I think that has helped a few guys on here including me. I’ll leave my patch as it stands for my boards as I have 2 to 3 uarts but the good news is @smartdave can go back to the Original FW.