Thread Tools
Jul 08, 2018, 05:11 AM
Registered User
RocketMouse's Avatar
Thanks!
Do I understand correct?
Uart6 - sbus
Uart3 - compass
Uart3 - gps
Uart1 - telemetry modem
Sign up now
to remove ads between posts
Jul 08, 2018, 05:22 AM
Registered User
No,
Sbus to ppm pin
Uart6 is not avaliable due to conflict with rxin
U2c2(the same pins as uart3) to compass
Uart1 to gps.
And no way to connect telemetry
Jul 08, 2018, 05:33 AM
Registered User
RocketMouse's Avatar
Thank's a lot, this is very valuable info that I couldn't find anywhere else!
Jul 08, 2018, 05:38 AM
Carbo (-nator) ;-)
Quote:
Originally Posted by Sh83
No,
Sbus to ppm pin
Uart6 is not avaliable due to conflict with rxin
U2c2(the same pins as uart3) to compass
Uart1 to gps.
And no way to connect telemetry
Why did it work with nightghosts HAL? It is identical Hardware. From ATX_Heli's closed thread:

"Connections:
-An Sbus,PPM, or DSM RX can be used (and is auto detected) and the PPM jumper on the board should be used.
-GPS is attached to UART6
-Telem is available at UART 1"

UART3 is also i2c here.
Jul 08, 2018, 05:50 AM
Registered User
This is docs for omnibus f4 v3 which is different from v5. In v5 you have no sbus/ppm selection pads. The same apply to f4light i think
Jul 08, 2018, 06:07 AM
Carbo (-nator) ;-)
Quote:
Originally Posted by Sh83
This is docs for omnibus f4 v3 which is different from v5. In v5 you have no sbus/ppm selection pads. The same apply to f4light i think
Oops, should have read more carefully. Thx!
Jul 08, 2018, 08:04 AM
Registered User
wkf94025's Avatar
Great knowledge exchange going on here! Sad but true that Omnibus F4 v5 is less capable for our purposes than the v3.

Kelly
Jul 08, 2018, 08:05 AM
Registered User
wkf94025's Avatar
Quote:
Originally Posted by Hetfield
Kelly,

I did some further investigations:

After checking the source code, some pull requests and currently known issues, I came to the conclusion that autodetecting mags is simply not yet implemented in ChibiOS.

Please have a look here:
https://github.com/ArduPilot/ardupilot/pull/7803
night-ghost's PR was accepted only for his HAL (f4light).
To confirm my idea, I flashed his firmware from here: https://github.com/night-ghost/ardupilot
Guess what ... compass worked perfectly!

Also this issue
https://github.com/ArduPilot/ardupilot/issues/8109
says that detection of external I2C compasses is not yet working in ChibiOS.

It seems like copter users still need to wait until the devs find some time to implement that feature.
Sadly, it is a mandatory one if you want to use GPS features on a copter.

Cheers
Hetfield
Nice research Hetfield. Basti, sh83, and comments on this? It would be great to knock off some of the compass issues, even as a fixed winger.

Kelly
Jul 08, 2018, 10:09 AM
Registered User
Also this issue
https://github.com/ArduPilot/ardupilot/issues/8109
says that detection of external I2C compasses is not yet working in ChibiOS.

It says in notes "detection of ALL external I2C compasses". Does this mean that it can't use ANY compasses, or that it can use only a specific compass type/model on I2C buss?
Thanks, Joe
Jul 08, 2018, 11:17 AM
Registered User
Joe,

you are right: I didn't express clearly enough.
I think, it does detect one specific compass. If you can compile yourself, you can specify that one in \libraries\AP_HAL_ChibiOS\hwdef\yourBoardHere\hwde f.dat with type and I2C bus address.

Mine is HMC5883, for which I couldn't find a definition in the list of "HAL_COMPASS_*", so I couldn't try. f4light does detect HMC5883 though.

f4light uses this as default:
#define BOARD_COMPASS_DEFAULT HAL_COMPASS_HMC5843
#define BOARD_COMPASS_HMC5843_I2C_ADDR 0x1E
#define BOARD_COMPASS_HMC5843_ROTATION ROTATION_NONE

It works even for 5883, so I thought autodetect does the job and overrides the default.

I tried the same in ChibiOS for my 5883 without success:
define HAL_COMPASS_DEFAULT HAL_COMPASS_HMC5843
define HAL_COMPASS_QMC5843_I2C_BUS 0
define HAL_COMPASS_QMC5843_I2C_ADDR 0x1E

Maybe somebody can point me to the right definition in ChibiOS HAL format for my compass?

Cheers
Hetfield
Last edited by Hetfield; Jul 08, 2018 at 11:29 AM. Reason: typo
Jul 08, 2018, 11:30 AM
Registered User
Hetfield,which board do you have?
Jul 08, 2018, 11:33 AM
Registered User
@Sh83:

Omnibus v3 PRO
Jul 08, 2018, 11:51 AM
Registered User
Hmc8553 already default on this board. Probably you have qmc5883
Last edited by Sh83; Jul 08, 2018 at 12:09 PM.
Jul 08, 2018, 12:12 PM
Registered User
Quote:
Originally Posted by Sh83
Hml8553 already default on this board. Probably you have qmc5883
Sh83,

The default is HMC5843.
I don't know what you mean with "HML8553" Maybe a typo?

As per the label on the chip, I do have a HMC5883 (!=5843). QMC5883 look different.
Also iNAV detects it as HMC5883 and not QMC.

Cheers
Hetfield
Jul 08, 2018, 12:41 PM
Registered User
Thanks Hetfield. Also Have F4 V3 Pro board. I guess this means I get to figure out how to compile this stuff- been avoiding that step! I wish someone just had a "run this" file to set this all up. Always been a Windows user.
I know, ----but everywhere I have ever worked, they use windows, so that's what I learned.
Joe


Quick Reply
Message:

Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Ardupilot flight controller status xmarkx Multirotor Drone Talk 9 Sep 11, 2018 02:43 PM
New Product Scisky-Mul-A integrated FPV flight control board 12g! YXmotor FPV Talk 22 Mar 01, 2017 05:42 PM
Discussion Integrated power distribution board and flight controller. tele1974 FPV Equipment 0 Nov 09, 2015 10:36 PM