inav icon indicating copy to clipboard operation
inav copied to clipboard

iNAV 1.2.0 RC3 has removed the barometer and sonar from my NAZE32

Open jstremmler opened this issue 10 years ago • 28 comments

Barometer and sonar al no loger shown on my NAZE32 with the RC3 on version 1.2.0.

screenshot - 29_08

jstremmler avatar Aug 29 '16 16:08 jstremmler

Support for SONAR and BMP280 barometer have been removed from NAZE target due to lack of ROM space.

martinbudden avatar Aug 29 '16 16:08 martinbudden

As the naze r6 is BMP280, perhaps you could rethink this one.

stronnag avatar Aug 29 '16 16:08 stronnag

Things that could be removed instead:

#define USE_GYRO_MPU3050 #define USE_BARO_BMP085 #define TELEMETRY_LTM

I'm not actually sure what uses the MPU3050 gyro.

Any preferences?

martinbudden avatar Aug 29 '16 16:08 martinbudden

I agree with sonar, but can not understand removing BMP280 which are used for latet Naze rev (6). Would it not be better to remove earlier revs hardware BMP085, MPU3050, ADXL345? Or some GPS protocols: as probably most users are using ublox (rahter than NMEA, NAZA or I2C), or even beeper, or blheli interface (it's something that can be done using external tools) would make more sense. Another idea could be to split copter FW from FWings (as it's done for ardupilot).

xdigyx avatar Aug 29 '16 16:08 xdigyx

I would agree with BLHELI flashing going, and NMEA (as it was broken until very recently anyway). IIRC ADXL345 is used by some of the older NAZE / FLIP32, last time we removed it there were protests. I doubt we have many NRF24 users

stronnag avatar Aug 29 '16 16:08 stronnag

GPS_PROTO_NMEA, GPS_PROTO_I2C_NAV and GPS_PROTO_NAZA have already gone.

So has ADXL345 - perhaps I should put that back in.

We are really squeezing the pips here.

martinbudden avatar Aug 29 '16 16:08 martinbudden

What about splitting copter from FWings for future releases. is it something that could be considered? would that release significant amt of memory?

xdigyx avatar Aug 29 '16 16:08 xdigyx

OK I've got a PR to put back BMP280 and ADXL345 and take out TELEMETRY_LTM

martinbudden avatar Aug 29 '16 16:08 martinbudden

@xdigyx , that's a good idea. Two NAZE variants, copter and airplane.

It will have to wait for v1.3 though.

martinbudden avatar Aug 29 '16 16:08 martinbudden

glad to hear it! as I have Naze F1, I would like to have full functionality that profits flight performance and features.

xdigyx avatar Aug 29 '16 16:08 xdigyx

Just upgrade to a modern compiler. GCC 6.1 has no problem including BMP280.

stronnag avatar Aug 29 '16 16:08 stronnag

I'm very keen on supporting both the NAZE and CC3D targets. Both because I think it is important to support people who have build aircraft using those FCs and also to enable the cheaper FCs for those on a budget.

I also think that the effort of supporting those targets improves the quality of the codebase.

martinbudden avatar Aug 29 '16 16:08 martinbudden

@digitalentity , what about upgrading to GCC v6.1?

martinbudden avatar Aug 29 '16 17:08 martinbudden

My old NAZE32 Rev5 works with the RC3. In the sensors menue the barometer first did not show any reaction. Switching in the CLI command set baro_hardware=0 made it work also in the sensors menu, which is suspicious.... Unfortunately I had removed this FC 2 days ago when crashing with RC2...... Think it's time for my Sparky2, with OPlink and TauLabs software... But Taulabs latest GCS release unfortunately has an issue with storing waypoints in the F4 FC.

jstremmler avatar Aug 29 '16 17:08 jstremmler

@martinbudden, I think arm gcc 6.1 is not available on legacy OS.

stronnag avatar Aug 29 '16 17:08 stronnag

@stronnag , what do you mean by legacy OS?

martinbudden avatar Aug 29 '16 17:08 martinbudden

Windows, MacOS :-)

Seriously, though unless you use a progressive Linux distro, you're likely to be on 5.4 at best unless you build from source, which is a pity as arm-gcc 6.1 has some really nice size optimisations, as well as the linker diagnostics that catch (admittedly trivial) things like #524.

stronnag avatar Aug 29 '16 18:08 stronnag

Well, much as I'd like to use Linux, it's just way too much yak shaving. I've only just updated my OSX - and that has caused me a lot of pain and wasted time.

As far as iNav is concerned it doesn't matter - all that matters is what the travis build uses, and presumably that can use gcc 6.1. (I'm presuming travis is used to produce the release - but actually I don't know that.)

martinbudden avatar Aug 29 '16 18:08 martinbudden

regardless, removing the USE_SERIAL_4WAY_BLHELI_INTERFACE saves a large amount of space (3650b in the hex) , allowing for common sensors, LTM and SONAR. Given that one only flashes ESCs occasionally and there are other solutions, this would seem like a good candidate to go on F1.

stronnag avatar Aug 29 '16 18:08 stronnag

If USE_SERIAL_4WAY_BLHELI_INTERFACE will be removed, can LED STRIP be readied again?

skaman82 avatar Aug 29 '16 18:08 skaman82