inav icon indicating copy to clipboard operation
inav copied to clipboard

add *new* magnetometer DA 5883(QMC5883) into the list of mag_hardware in future firmware.

Open chan2328 opened this issue 8 years ago • 13 comments

as #2299 the solution is found and tested which is removing the magGain. is it possible to add new magnetometer DA 5883(QMC5883) into the list of mag_hardware in future firmware?

chan2328 avatar Dec 06 '17 04:12 chan2328

QMC5883 is supported already. What you are asking for is support for poorly cloned HMC5883 compass. I'm not sure that removing magGain from HMC5883 driver is a proper way of doing this as it will break existing setups.

digitalentity avatar Dec 07 '17 12:12 digitalentity

@digitalentity Sorry, May be my explanation is not clear, I mean that add a additional driver for particular magnetometer (DA 5883), no need to change existing driver, because I have HMC5883 too, the existing driver for HMC5883 is good and works great. after flight few days. DA 5883 did very well, so I suggest adding into the list of mag_hardware for future firmware. and we should understand that we need to take a risk when using this magnetometer (DA 5883). Trial and Error. Actually, I want to modify firmware by myself, but it is out of my knowledge, as there is no easy way to get into the coding, no tutorial i can follow step by step to create custom firmware, whatever thank you very much.

chan2328 avatar Dec 08 '17 17:12 chan2328

@chan2328 Developer documentation exists: https://github.com/iNavFlight/inav/tree/master/docs/development Compiling a custom firmware is relatively easy. Once you installed the ARM compiler toolchain just download the iNav source code and execute make TARGET=your_target.

shellixyz avatar Dec 08 '17 18:12 shellixyz

see also the fine wiki https://github.com/iNavFlight/inav/wiki/Building-custom-firmware

stronnag avatar Dec 08 '17 18:12 stronnag

@shellixyz @stronnag followed the step, but it is not work. what should i do next? install 1, 2, 3 steps in RUBY windows? 1

chan2328 avatar Dec 09 '17 07:12 chan2328

I am using windows 7 64bit . should i install 64bit version of RUBY or else

chan2328 avatar Dec 09 '17 07:12 chan2328

Use docker solution to build inav is super easy :)

parnz avatar Dec 09 '17 08:12 parnz

@chan2328 What Ruby installer did you use ? The installer downloaded from https://rubyinstaller.org/ (the URL from Building in Windows) should be a GUI and automatically add Ruby to your PATH. The problem is that the installer you used did not add the path of your Ruby binaries to the PATH environment.

shellixyz avatar Dec 09 '17 15:12 shellixyz

Ruby 2.4.2-2 (x86) 2

i lost......... 3

chan2328 avatar Dec 09 '17 16:12 chan2328

I'm not using Windows but I installed the same version along with Cygwin (all defaults) in a fresh VM and it is working. inav_build_win

shellixyz avatar Dec 09 '17 16:12 shellixyz

@shellixyz I also follow the steps but there is no git completion, it is different. 4

chan2328 avatar Dec 11 '17 03:12 chan2328

@chan2328 You don't need the bash completion for git just skip it. Also if the ruby installer doesn't work you can install ruby from Cygwin it is in the Interpreters category.

shellixyz avatar Dec 11 '17 13:12 shellixyz

The firmware now supports this device, closing.

stronnag avatar Apr 04 '18 12:04 stronnag