iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.07k stars 1.46k forks source link

MS5611 and HMC5883 not detected in SPRacing F3 Deluxe #1572

Closed DrSensor closed 7 years ago

DrSensor commented 7 years ago

In Betaflight It can Auto detected and read fine. But in Inav its not auto detected. Also, when I set manually set baro_hardware = MS5611 the CPU load rise to about 660% screenshot from 2017-04-20 19-27-23

digitalentity commented 7 years ago

Please consider providing details of your setup, complete dump and bootlog.

rb1205 commented 7 years ago

Just tested a SPR F3 deluxe on both 1.6.1 and 1.7.0 RC1. Both version correctly detected and use the available hardware.

digitalentity commented 7 years ago

I guess it's a hardware quality issue. The fact that sensor is being detected by Betaflight doesn't mean that it's functioning properly. INAV is much less tolerant to faulty sensors.

dragon1020 commented 7 years ago

Have same issue. Old F3 Deluxe was works fine, but with new got problem, which described by cimenx. And yes, in BF all ok - at least on graphic on "Sensors" tab magnetometer and barometer works like a charm. Interesting thing: this sensors works just about fine in iNav 1.5.0. In 1.5.1 they don't. In 1.5.0 only one issue - magnetometer randomly resets. 2017-04-25 02 49 44

digitalentity commented 7 years ago

Neigher Betaflight nor INAV before 1.6 have hardware failure detection. INAV 1.6 and above will detect and disable failing or unreliable sensors for safety. I would assume everybody will want to know about sensor failure before taking off.

For the record, both baro and compass work reliably on my genuine SPRacingF3 board.

dragon1020 commented 7 years ago

And why iNav 1.5.1. didn't work as well? Only 1.5.0 (and probably below). Not all of us can buy genuine F3. So we can't fly?

digitalentity commented 7 years ago

There is no difference in 1.5.1 and 1.5.0 regarding i2c bus operations on F3 targets (including SPRacingF3). The board should work equally good (or bad) with both firmware versions. Most likely you are experiencing random sensor failure that manifest itself on all firmwares.

Quality problems are very frequent with Chinese boards - you should contact the seller of your board for solving quality issues.

Regarding your question wether you can fly or not: in the end it's either blocking faulty boards from flying or having tons of "fly-away" reports. To me choice is pretty much obvious,.

dragon1020 commented 7 years ago

Random sensors failure should be random, right? :) But I (and one more dude, check your VK group, please) get working (almost) board at 1.5.0, and it hangs with over 600% CPU load at 1.5.1. I tested more than once. Something has done between 1.5.0 and 1.5.1.

olivierlando commented 7 years ago

I'm having exactly the same issue with an SPF3 board : MS5611 & HMC5883 are detected and seem to be working fine with iNav 1.5.0. In the following versions, they are not detected and if I manually select them, CPU load go up to 600%.

dragon1020 commented 7 years ago

olivierlando, welcome to the club. ;) With you I know 5 peoples with this problem. Where you bought your board?

digitalentity commented 7 years ago

Nothing affecting I2C and sensor detection on SPRacingF3 board was done between 1.5.0 and 1.5.1. The glitch is triggered by something else. I probably should buy one board from the same source as you guys to investigate.

dragon1020 commented 7 years ago

Konstantin, I (and other guys) is ready to help as we can. Just say what to do. :) May be this issue didn't link to I2C?

digitalentity commented 7 years ago

It's virtually impossible to debug remotely. I would use logic analyzer to check the activity on I2C bus to see what sensor locks up the bus.

dragon1020 commented 7 years ago

May be I will send to you my board, when I get refund for it? May be this will be faster, than order it from China?

digitalentity commented 7 years ago

@dragon1020 where are you located?

dragon1020 commented 7 years ago

Moscow, Russia. :)

olivierlando commented 7 years ago

I bought mine on Amazon : https://www.amazon.fr/gp/product/B01D8EK1YY . I've made some more search and it seems that there are often I2C issues with this version of the board. In Cleanflight the sensors are detected but I can see an lot of I2C errors... I'm going to ask for a refund. Maybe these blocking errors in iNav have saved my plane ;)

digitalentity commented 7 years ago

That's the point of hardware failure detection - you want to know about the failure before you fly :laughing:

digitalentity commented 7 years ago

@dragon1020 yes, it would definitely be faster than ordering from China. Ping me on VK - once I have failing hardware we'll get this squared out - maybe there is some hardware or software solution to this issue.

dragon1020 commented 7 years ago

Ok, but I bought mine on Ali, from a famous :) supplier ReadytoSky.

digitalentity commented 7 years ago

ReadyToSky is know for random quality but very cheap hardware. Finding a decent quality hardware has become a huge problem lately.

darkling1979 commented 7 years ago

Same problem, SPRacingF3 Deluxe from ReadyToSky, versions <= 1.4 mag works fine, i2cErrors=0 version=1.5 mag does random jumps to zero(one or two per 10 sec),i2cErrors=0 versions >1.5 processor load =600%, i2cErrors over 9000. I used internal and external mag, it makes no difference in system behavior.

georges6788 commented 7 years ago

Similar issues on my board SPRF3 Deluxe which I bought it in UK.

digitalentity commented 7 years ago

SPRacingF3 from a random Chinese seller running 1.7.0 for 5 hours straight. No issues.

image

For troubleshooting this I need either a failing board or a recording of SCL and SDA done with a logic probe at the moment of failure.

Tylerrattv commented 7 years ago

im having the same issue. if i manually enable the compass it still works but as soon as the barometer is enabled the CPU goes up to 660% 2017-04-30 1

liutairan commented 7 years ago

Well, I got exactly the same problem with my new SP Racing F3 board. I tested with cleanflight/betaflight and iNav 1.5.0 all work well, but got problem with iNav 1.5.1, 1.6.0, 1.6.1.

liutairan commented 7 years ago

@digitalentity I also bought my SP Racing F3 board from the amazon link appeared above (https://www.amazon.com/gp/product/B01CG6CU9E).

I will return it and find another one.

digitalentity commented 7 years ago

Name and decription of the board on Amazon (especially the "Brano" word - should be Baro or Barometer) give a hint that it's a cloned board meaning there are probably cloned, faulty or incorrect components used.

What I suggest you try doing is add a pair of 1K pull-up resistors between SCL/SDA and 3.3V. You can take any other source of 3.3V on the board, just be sure to verify it's 3.3V or you might burn the hardware:

image

If you do - please let us know if it helped :smile:

georges6788 commented 7 years ago

I've tried with those two resistors - still the same; I'm pretty sure the behavior of my board is not as it should be; again, seems to be fine in Cleanflight/Betaflight but I've flashed iNav firmware through iNav configurator (for this test) when tried to come back to Cleanflight firmware just stopped working - had to use ST flash loader to get it back to life. I've ordered a new SPRF3 board from another source to test it.

georges6788 commented 7 years ago

The new SPRF3 (from trusted source this time) just arrived; flashed iNav firmware 1.7.0 which works fine; no errors and CPU load 5 - 12%. I hope this helps.

digitalentity commented 7 years ago

I believe this issue can be closed - obviously hardware-related.

dragon1020 commented 7 years ago

Not too early? You don't look at my FC yet. And by the way, look private messages in VK - it's about sending to you my FC.

moonlitfpv commented 7 years ago

georges6788; where did you get your board from in the end? I have a Chinese board that's acting out the same as everyone elses. Genuine SP board then?

liutairan commented 7 years ago

@georges6788 I am also curious where did you get the new board; I am looking for a working SPRF3. Thanks~

georges6788 commented 7 years ago

@moonliftfpv, liutairan this FC is Chinese too however I bought a few things from this seller and I'm very happy with them.

http://www.ebay.co.uk/itm/262620641060?_trksid=p2060353.m2749.l2649&var=561516167389&ssPageName=STRK%3AMEBIDX%3AIT

Allerhopp commented 7 years ago

2 new SPRacingF3 deluxe, i can confirm darkling1979:

Same problem, SPRacingF3 Deluxe from ReadyToSky, versions <= 1.4 mag works fine, i2cErrors=0 version=1.5 mag does random jumps to zero(one or two per 10 sec),i2cErrors=0 versions >1.5 processor load =600%, i2cErrors over 9000. I used internal and external mag, it makes no difference in system behavior.

I have measured the internal pullups and there are 1k @ SCL and SDA. Is maybe 1k too low? Can someone with a working SPRF3 measure the pullups (between SCL <-> 3.3V and SDA <-> 3.3V)?

Allerhopp commented 7 years ago

After removing the magnetometer chip (i have heated the chip on top with a soldering iron, until it was removable) , INav detected the baro and gives the expected values. So the magnetometer chip seems to be the culprit. No loss for wings and little loss for copters, they usually need a separate mounted magnetometer.

GTorreil commented 7 years ago

@Allerhopp What FC did you modify this way ? SPF3 from Aliexpress / Readytosky ? If this works then I am extremely interrested !

Allerhopp commented 7 years ago

@GTorreil https://fr.aliexpress.com/item/Upgrade-NAZE32-SP-Racing-F3-Flight-Control-Acro-6-DOF-Deluxe-10-DOF-for-Multicopter/32555903684.html?shortkey=niQjEJZR&addresstype=600

GTorreil commented 7 years ago

That's exactly the one I have !! Thanks a lot :D I'm only concerned about something... Will the mag in an M8N module from Aliexpress have the same problem? We'll see...

dawidm82 commented 7 years ago

Same problem. In cleanflight everything works reliably, some i2cErrors on startup. iNav 1.4 works, 6 i2cErrors on startup. iNav 1.5 random jumps to 0 and i2cErrors=0. iNav >= 1.5.1 hangs.

darkling1979 commented 7 years ago

unsoldered an resoldered pullup resistors for i2c bus, and it5 started to work normally.(with external mag sp_racing_f3-2 )

myvilli commented 7 years ago

Hi, I am so happy to bump into this thread, I desperately tried all the possible settings and can only see my wing crashing down. Nor horizon nor angle nor RTH mode was working correctly. I am using SPF3 mini and Unavailable 1.7 while 1.4 is working flawlessly. I think the i2c code has been modded with the introduction of RTH sanity check of Inav 1.5. Wouldn't be possible to set it as a parameter?

leper666 commented 7 years ago

Hi folks,

unfortunately I have a faulty board too. Very bad beginning of my holidy:( However I have not that much time to wait for a new one. So I tried improvin solder joints on the i2c pull up resistors with no luck. MY board (v1) look a bit different from darklings but i manages to find the appropriate resistors using my multimeter. In my despair i was brave enough to remove the the HMC5883 and now everything is working like it is supposed to. Baro is auto recognized and I2c is working without errors. So if you plan on building a gps controlled quad like me, the lesson is to save money and buy the 6DOF version in the first place...

Hope this helps someone!!!

Best regrads from Germany.

Denis

leper666 commented 7 years ago

I have a short update:

I connected my neo 6m gps to the module. The onboard compass doesnot seem to work to at the moment.
I'll have to sort out where the problem is tomorrow

VictorBucha commented 7 years ago

Hi, I got the same problem with SP Racing F3 Deluxe, INAV 1.7.1. (also tested 1.7.0- same bad results) I cannot enter CLI in INAV as CPU load is above 650% and board is not reacting to any commands, but perfectly works with latest cleanflight or betaflight firmwares. I made dump in Betaflight for your reference below: $M>ptARM;AIR MODE;ANTI GRAVITY;ANGLE;HORIZON;HEADFREE;BARO;MAG;HEADADJ;FAILSAFE;BEEPER;BLACKBOX;FPV ANGLE MIX;OSD SW;z$M>–ù `$M>nÌ¥ CLI

dump

Betaflight / SPRACINGF3 3.1.7 Apr 3 2017 / 22:27:23 (e1c4b5c)

name - resource BEEPER 1 C15 resource MOTOR 1 A06 resource MOTOR 2 A07 resource MOTOR 3 A11 resource MOTOR 4 A12 resource MOTOR 5 B08 resource MOTOR 6 B09 resource MOTOR 7 A02 resource MOTOR 8 A03 resource MOTOR 9 NONE resource MOTOR 10 NONE resource MOTOR 11 NONE resource MOTOR 12 NONE resource SERVO 1 NONE resource SERVO 2 NONE resource SERVO 3 NONE resource SERVO 4 NONE resource SERVO 5 NONE resource SERVO 6 NONE resource SERVO 7 NONE resource SERVO 8 NONE resource PPM 1 A00 resource PWM 1 A00 resource PWM 2 A01 resource PWM 3 B11 resource PWM 4 B10 resource PWM 5 B04 resource PWM 6 B05 resource PWM 7 B00 resource PWM 8 B01 resource LED_STRIP 1 A08 resource SERIAL_TX 1 A09 resource SERIAL_TX 2 A14 resource SERIAL_TX 3 B10 resource SERIAL_TX 4 NONE resource SERIAL_TX 5 NONE resource SERIAL_TX 6 NONE resource SERIAL_TX 7 NONE resource SERIAL_TX 8 NONE resource SERIAL_TX 9 NONE resource SERIAL_TX 10 NONE resource SERIAL_TX 11 B05 resource SERIAL_TX 12 B01 resource SERIAL_RX 1 A10 resource SERIAL_RX 2 A15 resource SERIAL_RX 3 B11 resource SERIAL_RX 4 NONE resource SERIAL_RX 5 NONE resource SERIAL_RX 6 NONE resource SERIAL_RX 7 NONE resource SERIAL_RX 8 NONE resource SERIAL_RX 9 NONE resource SERIAL_RX 10 NONE resource SERIAL_RX 11 B04 resource SERIAL_RX 12 B00 mixer QUADX

mmix reset

servo 0 1000 2000 1500 90 90 100 -1 servo 1 1000 2000 1500 90 90 100 -1 servo 2 1000 2000 1500 90 90 100 -1 servo 3 1000 2000 1500 90 90 100 -1 servo 4 1000 2000 1500 90 90 100 -1 servo 5 1000 2000 1500 90 90 100 -1 servo 6 1000 2000 1500 90 90 100 -1 servo 7 1000 2000 1500 90 90 100 -1 smix reset

feature -RX_PPM feature -VBAT feature -INFLIGHT_ACC_CAL feature -RX_SERIAL feature -MOTOR_STOP feature -SERVO_TILT feature -SOFTSERIAL feature -GPS feature -FAILSAFE feature -SONAR feature -TELEMETRY feature -CURRENT_METER feature -3D feature -RX_PARALLEL_PWM feature -RX_MSP feature -RSSI_ADC feature -LED_STRIP feature -DISPLAY feature -OSD feature -BLACKBOX feature -CHANNEL_FORWARDING feature -TRANSPONDER feature -AIRMODE feature -SDCARD feature -VTX feature -RX_SPI feature -SOFTSPI feature -ESC_SENSOR feature -FEATURE_ANTI_GRAVITY feature RX_PPM feature VBAT feature FAILSAFE feature TELEMETRY feature CURRENT_METER feature RSSI_ADC feature BLACKBOX feature TRANSPONDER beeper GYRO_CALIBRATED beeper RX_LOST beeper RX_LOST_LANDING beeper DISARMING beeper ARMING beeper ARMING_GPS_FIX beeper BAT_CRIT_LOW beeper BAT_LOW beeper GPS_STATUS beeper RX_SET beeper ACC_CALIBRATION beeper ACC_CALIBRATION_FAIL beeper READY_BEEP beeper MULTI_BEEPS beeper DISARM_REPEAT beeper ARMED beeper SYSTEM_INIT beeper ON_USB map AETR1234 serial 0 1 115200 57600 0 115200 serial 1 0 115200 57600 0 115200 serial 2 0 115200 57600 0 115200 led 0 0,0::C:0 led 1 0,0::C:0 led 2 0,0::C:0 led 3 0,0::C:0 led 4 0,0::C:0 led 5 0,0::C:0 led 6 0,0::C:0 led 7 0,0::C:0 led 8 0,0::C:0 led 9 0,0::C:0 led 10 0,0::C:0 led 11 0,0::C:0 led 12 0,0::C:0 led 13 0,0::C:0 led 14 0,0::C:0 led 15 0,0::C:0 led 16 0,0::C:0 led 17 0,0::C:0 led 18 0,0::C:0 led 19 0,0::C:0 led 20 0,0::C:0 led 21 0,0::C:0 led 22 0,0::C:0 led 23 0,0::C:0 led 24 0,0::C:0 led 25 0,0::C:0 led 26 0,0::C:0 led 27 0,0::C:0 led 28 0,0::C:0 led 29 0,0::C:0 led 30 0,0::C:0 led 31 0,0::C:0 color 0 0,0,0 color 1 0,255,255 color 2 0,0,255 color 3 30,0,255 color 4 60,0,255 color 5 90,0,255 color 6 120,0,255 color 7 150,0,255 color 8 180,0,255 color 9 210,0,255 color 10 240,0,255 color 11 270,0,255 color 12 300,0,255 color 13 330,0,255 color 14 0,0,0 color 15 0,0,0 mode_color 0 0 1 mode_color 0 1 11 mode_color 0 2 2 mode_color 0 3 13 mode_color 0 4 10 mode_color 0 5 3 mode_color 1 0 5 mode_color 1 1 11 mode_color 1 2 3 mode_color 1 3 13 mode_color 1 4 10 mode_color 1 5 3 mode_color 2 0 10 mode_color 2 1 11 mode_color 2 2 4 mode_color 2 3 13 mode_color 2 4 10 mode_color 2 5 3 mode_color 3 0 8 mode_color 3 1 11 mode_color 3 2 4 mode_color 3 3 13 mode_color 3 4 10 mode_color 3 5 3 mode_color 4 0 7 mode_color 4 1 11 mode_color 4 2 3 mode_color 4 3 13 mode_color 4 4 10 mode_color 4 5 3 mode_color 5 0 9 mode_color 5 1 11 mode_color 5 2 2 mode_color 5 3 13 mode_color 5 4 10 mode_color 5 5 3 mode_color 6 0 6 mode_color 6 1 10 mode_color 6 2 1 mode_color 6 3 0 mode_color 6 4 0 mode_color 6 5 2 mode_color 6 6 3 mode_color 6 7 6 mode_color 6 8 0 mode_color 6 9 0 mode_color 6 10 0 mode_color 7 0 3 aux 0 0 0 900 900 aux 1 0 0 900 900 aux 2 0 0 900 900 aux 3 0 0 900 900 aux 4 0 0 900 900 aux 5 0 0 900 900 aux 6 0 0 900 900 aux 7 0 0 900 900 aux 8 0 0 900 900 aux 9 0 0 900 900 aux 10 0 0 900 900 aux 11 0 0 900 900 aux 12 0 0 900 900 aux 13 0 0 900 900 aux 14 0 0 900 900 aux 15 0 0 900 900 aux 16 0 0 900 900 aux 17 0 0 900 900 aux 18 0 0 900 900 aux 19 0 0 900 900 adjrange 0 0 0 900 900 0 0 adjrange 1 0 0 900 900 0 0 adjrange 2 0 0 900 900 0 0 adjrange 3 0 0 900 900 0 0 adjrange 4 0 0 900 900 0 0 adjrange 5 0 0 900 900 0 0 adjrange 6 0 0 900 900 0 0 adjrange 7 0 0 900 900 0 0 adjrange 8 0 0 900 900 0 0 adjrange 9 0 0 900 900 0 0 adjrange 10 0 0 900 900 0 0 adjrange 11 0 0 900 900 0 0 adjrange 12 0 0 900 900 0 0 adjrange 13 0 0 900 900 0 0 adjrange 14 0 0 900 900 0 0 rxrange 0 1000 2000 rxrange 1 1000 2000 rxrange 2 1000 2000 rxrange 3 1000 2000 rxfail 0 a rxfail 1 a rxfail 2 a rxfail 3 a rxfail 4 h rxfail 5 h rxfail 6 h rxfail 7 h rxfail 8 h rxfail 9 h rxfail 10 h rxfail 11 h rxfail 12 h rxfail 13 h rxfail 14 h rxfail 15 h rxfail 16 h rxfail 17 h set task_statistics = ON set mid_rc = 1500 set min_check = 1100 set max_check = 1900 set rssi_channel = 0 set rssi_scale = 30 set rc_interp = AUTO set rc_interp_ch = RP set rc_interp_int = 19 set rssi_invert = OFF set input_filtering_mode = OFF set fpv_mix_degrees = 0 set max_aux_channels = 14 set debug_mode = NONE set min_throttle = 1070 set max_throttle = 2000 set min_command = 1000 set digital_idle_percent = 4.500 set 3d_deadband_low = 1406 set 3d_deadband_high = 1514 set 3d_neutral = 1460 set 3d_deadband_throttle = 50 set use_unsynced_pwm = OFF set motor_pwm_protocol = ONESHOT125 set motor_pwm_rate = 480 set disarm_kill_switch = ON set gyro_cal_on_first_arm = OFF set auto_disarm_delay = 5 set small_angle = 25 set fixedwing_althold_dir = 1 set reboot_character = 82 set serial_update_rate_hz = 100 set gps_provider = NMEA set gps_sbas_mode = AUTO set gps_auto_config = ON set gps_auto_baud = OFF set gps_wp_radius = 200 set nav_controls_heading = ON set nav_speed_min = 100 set nav_speed_max = 300 set nav_slew_rate = 30 set beeper_inversion = ON set beeper_od = OFF set serialrx_provider = SPEK1024 set sbus_inversion = ON set spektrum_sat_bind = 0 set spektrum_sat_bind_autorst = 1 set tlm_switch = OFF set tlm_inversion = ON set sport_halfduplex = ON set frsky_default_lat = 0.000 set frsky_default_long = 0.000 set frsky_gps_format = 0 set frsky_unit = IMPERIAL set frsky_vfas_precision = 0 set frsky_vfas_cell_voltage = OFF set hott_alarm_int = 5 set pid_in_tlm = OFF set bat_capacity = 0 set vbat_scale = 110 set vbat_max_cell_voltage = 43 set vbat_min_cell_voltage = 33 set vbat_warning_cell_voltage = 35 set vbat_hysteresis = 1 set ibat_scale = 400 set ibat_offset = 0 set mwii_ibat_output = OFF set current_meter_type = ADC set battery_meter_type = ADC set bat_detect_thresh = 55 set use_vbat_alerts = ON set use_cbat_alerts = OFF set cbat_alert_percent = 10 set align_gyro = DEFAULT set align_acc = DEFAULT set align_mag = DEFAULT set align_board_roll = 0 set align_board_pitch = 0 set align_board_yaw = 0 set gyro_lpf = OFF set gyro_sync_denom = 4 set gyro_use_32khz = OFF set gyro_lowpass_type = PT1 set gyro_lowpass = 90 set gyro_notch1_hz = 400 set gyro_notch1_cut = 300 set gyro_notch2_hz = 200 set gyro_notch2_cut = 100 set moron_threshold = 48 set imu_dcm_kp = 2500 set imu_dcm_ki = 0 set alt_hold_deadband = 40 set alt_hold_fast_change = ON set deadband = 0 set yaw_deadband = 0 set thr_corr_value = 0 set thr_corr_angle = 800 set yaw_control_direction = 1 set yaw_motor_direction = 1 set servo_center_pulse = 1500 set tri_unarmed_servo = ON set servo_lowpass_hz = 400 set servo_lowpass = OFF set servo_pwm_rate = 50 set gimbal_mode = NORMAL set channel_forwarding_start = 4 set airmode_start_throttle = 1350 set failsafe_delay = 10 set failsafe_off_delay = 10 set failsafe_throttle = 1000 set failsafe_kill_switch = OFF set failsafe_throttle_low_delay = 100 set failsafe_procedure = DROP set rx_min_usec = 885 set rx_max_usec = 2115 set acc_hardware = AUTO set acc_lpf_hz = 10 set accxy_deadband = 40 set accz_deadband = 40 set acc_unarmedcal = ON set acc_trim_pitch = 0 set acc_trim_roll = 0 set baro_tab_size = 21 set baro_noise_lpf = 0.600 set baro_cf_vel = 0.985 set baro_cf_alt = 0.965 set baro_hardware = AUTO set mag_hardware = AUTO set mag_declination = 0 set pid_process_denom = 2 set blackbox_rate_num = 1 set blackbox_rate_denom = 1 set blackbox_device = SPIFLASH set blackbox_on_motor_test = OFF set magzero_x = 0 set magzero_y = 0 set magzero_z = 0 set ledstrip_visual_beeper = OFF set displayport_msp_col_adjust = 0 set displayport_msp_row_adjust = 0 profile 0

set gps_pos_p = 15 set gps_pos_i = 0 set gps_pos_d = 0 set gps_posr_p = 34 set gps_posr_i = 14 set gps_posr_d = 53 set gps_nav_p = 25 set gps_nav_i = 33 set gps_nav_d = 83 set pidsum_limit = 0.500 set pidsum_limit_yaw = 0.500 set d_lowpass_type = BIQUAD set d_lowpass = 100 set d_notch_hz = 260 set d_notch_cut = 160 set vbat_pid_gain = OFF set pid_at_min_throttle = ON set anti_gravity_thresh = 350 set anti_gravity_gain = 3.000 set setpoint_relax_ratio = 100 set d_setpoint_weight = 60 set yaw_accel_limit = 10.000 set accel_limit = 0.000 set iterm_windup = 50 set yaw_lowpass = 0 set p_pitch = 58 set i_pitch = 50 set d_pitch = 35 set p_roll = 44 set i_roll = 40 set d_roll = 30 set p_yaw = 70 set i_yaw = 45 set d_yaw = 20 set p_alt = 50 set i_alt = 0 set d_alt = 0 set p_level = 50 set i_level = 50 set d_level = 100 set p_vel = 55 set i_vel = 55 set d_vel = 75 set level_sensitivity = 55 set level_limit = 55 rateprofile 0 rateprofile 0

set rc_rate = 100 set rc_rate_yaw = 100 set rc_expo = 0 set rc_yaw_expo = 0 set thr_mid = 50 set thr_expo = 0 set roll_srate = 70 set pitch_srate = 70 set yaw_srate = 70 set tpa_rate = 10 set tpa_breakpoint = 1650

get mag

align_mag = DEFAULT Allowed values: DEFAULT, CW0, CW90, CW180, CW270, CW0FLIP, CW90FLIP, CW180FLIP, CW270FLIP

mag_hardware = AUTO Allowed values: AUTO, NONE, HMC5883, AK8975, AK8963

mag_declination = 0 Allowed range: -18000 - 18000

magzero_x = 0 Allowed range: -32768 - 32767

magzero_y = 0 Allowed range: -32768 - 32767

magzero_z = 0 Allowed range: -32768 - 32767

get baro

baro_tab_size = 21 Allowed range: 0 - 48

baro_noise_lpf = 0.600 Allowed range: 0 - 1

baro_cf_vel = 0.985 Allowed range: 0 - 1

baro_cf_alt = 0.965 Allowed range: 0 - 1

baro_hardware = AUTO Allowed values: AUTO, NONE, BMP085, MS5611, BMP280

VictorBucha commented 7 years ago

I flashed Inav 1.4.0 and all sensors detected. dump is below: Entering CLI Mode, type 'exit' to return, or 'help'

dump

version

INAV/SPRACINGF3 1.4.0 Nov 28 2016 / 10:59:44 (6bf7a91)

pflags

Persistent config flags: 0x00000000

dump master

mixer

mixer QUADX mmix reset smix reset

feature

feature -RX_PPM feature -VBAT feature -UNUSED_1 feature -RX_SERIAL feature -MOTOR_STOP feature -SERVO_TILT feature -SOFTSERIAL feature -GPS feature -FAILSAFE feature -SONAR feature -TELEMETRY feature -CURRENT_METER feature -3D feature -RX_PARALLEL_PWM feature -RX_MSP feature -RSSI_ADC feature -LED_STRIP feature -DASHBOARD feature -UNUSED_2 feature -BLACKBOX feature -CHANNEL_FORWARDING feature -TRANSPONDER feature -AIRMODE feature -SUPEREXPO feature -VTX feature -RX_SPI feature -SOFTSPI feature -PWM_SERVO_DRIVER feature -PWM_OUTPUT_ENABLE feature RX_PPM feature VBAT feature FAILSAFE feature BLACKBOX

beeper

beeper GYRO_CALIBRATED beeper RX_LOST beeper RX_LOST_LANDING beeper DISARMING beeper ARMING beeper ARMING_GPS_FIX beeper BAT_CRIT_LOW beeper BAT_LOW beeper GPS_STATUS beeper RX_SET beeper ACC_CALIBRATION beeper ACC_CALIBRATION_FAIL beeper READY_BEEP beeper MULTI_BEEPS beeper DISARM_REPEAT beeper ARMED beeper SYSTEM_INIT beeper ON_USB beeper LAUNCH_MODE

map

map AETR1234

serial

serial 0 1 115200 38400 0 115200 serial 1 0 115200 38400 0 115200 serial 2 0 115200 38400 0 115200

led

led 0 0,0::C:0 led 1 0,0::C:0 led 2 0,0::C:0 led 3 0,0::C:0 led 4 0,0::C:0 led 5 0,0::C:0 led 6 0,0::C:0 led 7 0,0::C:0 led 8 0,0::C:0 led 9 0,0::C:0 led 10 0,0::C:0 led 11 0,0::C:0 led 12 0,0::C:0 led 13 0,0::C:0 led 14 0,0::C:0 led 15 0,0::C:0 led 16 0,0::C:0 led 17 0,0::C:0 led 18 0,0::C:0 led 19 0,0::C:0 led 20 0,0::C:0 led 21 0,0::C:0 led 22 0,0::C:0 led 23 0,0::C:0 led 24 0,0::C:0 led 25 0,0::C:0 led 26 0,0::C:0 led 27 0,0::C:0 led 28 0,0::C:0 led 29 0,0::C:0 led 30 0,0::C:0 led 31 0,0::C:0

color

color 0 0,0,0 color 1 0,255,255 color 2 0,0,255 color 3 30,0,255 color 4 60,0,255 color 5 90,0,255 color 6 120,0,255 color 7 150,0,255 color 8 180,0,255 color 9 210,0,255 color 10 240,0,255 color 11 270,0,255 color 12 300,0,255 color 13 330,0,255 color 14 0,0,0 color 15 0,0,0

mode_color

mode_color 0 0 1 mode_color 0 1 11 mode_color 0 2 2 mode_color 0 3 13 mode_color 0 4 10 mode_color 0 5 3 mode_color 1 0 5 mode_color 1 1 11 mode_color 1 2 3 mode_color 1 3 13 mode_color 1 4 10 mode_color 1 5 3 mode_color 2 0 10 mode_color 2 1 11 mode_color 2 2 4 mode_color 2 3 13 mode_color 2 4 10 mode_color 2 5 3 mode_color 3 0 8 mode_color 3 1 11 mode_color 3 2 4 mode_color 3 3 13 mode_color 3 4 10 mode_color 3 5 3 mode_color 4 0 7 mode_color 4 1 11 mode_color 4 2 3 mode_color 4 3 13 mode_color 4 4 10 mode_color 4 5 3 mode_color 5 0 9 mode_color 5 1 11 mode_color 5 2 2 mode_color 5 3 13 mode_color 5 4 10 mode_color 5 5 3 mode_color 6 0 6 mode_color 6 1 10 mode_color 6 2 1 mode_color 6 3 0 mode_color 6 4 0 mode_color 6 5 2 mode_color 6 6 3 mode_color 6 7 6 mode_color 6 8 0 mode_color 6 9 0 mode_color 6 10 0

set looptime = 2000 set i2c_overclock = OFF set gyro_sync = OFF set gyro_sync_denom = 2 set acc_task_frequency = 500 set attitude_task_frequency = 250 set async_mode = NONE set mid_rc = 1500 set min_check = 1100 set max_check = 1900 set rssi_channel = 0 set rssi_scale = 30 set rssi_ppm_invert = OFF set rc_smoothing = ON set input_filtering_mode = OFF set min_throttle = 1150 set max_throttle = 1850 set min_command = 1000 set 3d_deadband_low = 1406 set 3d_deadband_high = 1514 set 3d_neutral = 1460 set 3d_deadband_throttle = 50 set motor_pwm_rate = 400 set motor_pwm_protocol = STANDARD set fixed_wing_auto_arm = OFF set disarm_kill_switch = ON set auto_disarm_delay = 5 set small_angle = 25 set reboot_character = 82 set gps_provider = UBLOX set gps_sbas_mode = NONE set gps_dyn_model = AIR_1G set gps_auto_config = ON set gps_auto_baud = ON set inav_auto_mag_decl = ON set inav_accz_unarmedcal = ON set inav_use_gps_velned = ON set inav_gps_delay = 200 set inav_gps_min_sats = 6 set inav_w_z_baro_p = 0.350 set inav_w_z_gps_p = 0.200 set inav_w_z_gps_v = 0.500 set inav_w_xy_gps_p = 1.000 set inav_w_xy_gps_v = 2.000 set inav_w_z_res_v = 0.500 set inav_w_xy_res_v = 0.500 set inav_w_acc_bias = 0.010 set inav_max_eph_epv = 1000.000 set inav_baro_epv = 100.000 set nav_disarm_on_landing = OFF set nav_use_midthr_for_althold = OFF set nav_extra_arming_safety = ON set nav_user_control_mode = ATTI set nav_position_timeout = 5 set nav_wp_radius = 100 set nav_max_speed = 300 set nav_max_climb_rate = 500 set nav_manual_speed = 500 set nav_manual_climb_rate = 200 set nav_landing_speed = 200 set nav_land_slowdown_minalt = 500 set nav_land_slowdown_maxalt = 2000 set nav_emerg_landing_speed = 500 set nav_min_rth_distance = 500 set nav_rth_tail_first = OFF set nav_rth_alt_mode = AT_LEAST set nav_rth_altitude = 1000 set nav_mc_bank_angle = 30 set nav_mc_hover_thr = 1500 set nav_mc_auto_disarm_delay = 2000 set nav_fw_cruise_thr = 1400 set nav_fw_min_thr = 1200 set nav_fw_max_thr = 1700 set nav_fw_bank_angle = 20 set nav_fw_climb_angle = 20 set nav_fw_dive_angle = 15 set nav_fw_pitch2thr = 10 set nav_fw_roll2pitch = 75 set nav_fw_loiter_radius = 5000 set nav_fw_launch_accel = 1863 set nav_fw_launch_detect_time = 40 set nav_fw_launch_thr = 1700 set nav_fw_launch_motor_delay = 500 set naw_fw_launch_timeout = 5000 set naw_fw_launch_climb_angle = 10 set serialrx_provider = SPEK1024 set spektrum_sat_bind = 0 set telemetry_switch = OFF set telemetry_inversion = ON set frsky_default_lattitude = 0.000 set frsky_default_longitude = 0.000 set frsky_coordinates_format = 0 set frsky_unit = IMPERIAL set frsky_vfas_precision = 0 set frsky_vfas_cell_voltage = OFF set hott_alarm_sound_interval = 5 set smartport_uart_unidir = OFF set battery_capacity = 0 set vbat_scale = 110 set vbat_max_cell_voltage = 43 set vbat_min_cell_voltage = 33 set vbat_warning_cell_voltage = 35 set current_meter_scale = 400 set current_meter_offset = 0 set multiwii_current_meter_output = OFF set current_meter_type = ADC set align_gyro = DEFAULT set align_acc = DEFAULT set align_mag = DEFAULT set align_board_roll = 0 set align_board_pitch = 0 set align_board_yaw = 0 set gyro_lpf = 42HZ set moron_threshold = 32 set imu_dcm_kp = 2500 set imu_dcm_ki = 50 set imu_dcm_kp_mag = 10000 set imu_dcm_ki_mag = 0 set pos_hold_deadband = 20 set alt_hold_deadband = 50 set yaw_motor_direction = 1 set yaw_jump_prevention_limit = 200 set tri_unarmed_servo = ON set servo_lowpass_freq = 400 set servo_lowpass_enable = OFF set servo_center_pulse = 1500 set servo_pwm_rate = 50 set failsafe_delay = 10 set failsafe_off_delay = 200 set failsafe_throttle = 1000 set failsafe_kill_switch = OFF set failsafe_throttle_low_delay = 100 set failsafe_procedure = SET-THR set rx_min_usec = 885 set rx_max_usec = 2115 set acc_hardware = 0 set baro_use_median_filter = ON set baro_hardware = 0 set mag_hardware = 0 set blackbox_rate_num = 1 set blackbox_rate_denom = 1 set blackbox_device = SPIFLASH set magzero_x = 0 set magzero_y = 0 set magzero_z = 0 set acczero_x = 0 set acczero_y = 0 set acczero_z = 0 set ledstrip_visual_beeper = OFF set accgain_x = 4096 set accgain_y = 4096 set accgain_z = 4096

rxfail

rxfail 0 a rxfail 1 a rxfail 2 a rxfail 3 a rxfail 4 h rxfail 5 h rxfail 6 h rxfail 7 h rxfail 8 h rxfail 9 h rxfail 10 h rxfail 11 h rxfail 12 h rxfail 13 h rxfail 14 h rxfail 15 h rxfail 16 h rxfail 17 h

dump profile

profile

profile 0

aux

aux 0 0 0 900 900 aux 1 0 0 900 900 aux 2 0 0 900 900 aux 3 0 0 900 900 aux 4 0 0 900 900 aux 5 0 0 900 900 aux 6 0 0 900 900 aux 7 0 0 900 900 aux 8 0 0 900 900 aux 9 0 0 900 900 aux 10 0 0 900 900 aux 11 0 0 900 900 aux 12 0 0 900 900 aux 13 0 0 900 900 aux 14 0 0 900 900 aux 15 0 0 900 900 aux 16 0 0 900 900 aux 17 0 0 900 900 aux 18 0 0 900 900 aux 19 0 0 900 900

adjrange

adjrange 0 0 0 900 900 0 0 adjrange 1 0 0 900 900 0 0 adjrange 2 0 0 900 900 0 0 adjrange 3 0 0 900 900 0 0 adjrange 4 0 0 900 900 0 0 adjrange 5 0 0 900 900 0 0 adjrange 6 0 0 900 900 0 0 adjrange 7 0 0 900 900 0 0 adjrange 8 0 0 900 900 0 0 adjrange 9 0 0 900 900 0 0 adjrange 10 0 0 900 900 0 0 adjrange 11 0 0 900 900 0 0

rxrange

rxrange 0 1000 2000 rxrange 1 1000 2000 rxrange 2 1000 2000 rxrange 3 1000 2000

servo

servo 0 1000 2000 1500 90 90 100 -1 servo 1 1000 2000 1500 90 90 100 -1 servo 2 1000 2000 1500 90 90 100 -1 servo 3 1000 2000 1500 90 90 100 -1 servo 4 1000 2000 1500 90 90 100 -1 servo 5 1000 2000 1500 90 90 100 -1 servo 6 1000 2000 1500 90 90 100 -1 servo 7 1000 2000 1500 90 90 100 -1

set nav_alt_p = 50 set nav_alt_i = 0 set nav_alt_d = 0 set nav_vel_p = 100 set nav_vel_i = 50 set nav_vel_d = 10 set nav_pos_p = 65 set nav_pos_i = 120 set nav_pos_d = 10 set nav_posr_p = 180 set nav_posr_i = 15 set nav_posr_d = 100 set nav_navr_p = 10 set nav_navr_i = 5 set nav_navr_d = 8 set deadband = 5 set yaw_deadband = 5 set throttle_tilt_comp_str = 0 set flaperon_throw_offset = 250 set flaperon_throw_inverted = OFF set gimbal_mode = NORMAL set fw_iterm_throw_limit = 165 set mode_range_logic_operator = OR set default_rate_profile = 0 set mag_declination = 0 set mag_hold_rate_limit = 90 set p_pitch = 40 set i_pitch = 30 set d_pitch = 23 set p_roll = 40 set i_roll = 30 set d_roll = 23 set p_yaw = 85 set i_yaw = 45 set d_yaw = 0 set p_level = 20 set i_level = 15 set d_level = 75 set max_angle_inclination_rll = 300 set max_angle_inclination_pit = 300 set gyro_soft_lpf_hz = 60 set acc_soft_lpf_hz = 15 set dterm_lpf_hz = 40 set yaw_lpf_hz = 30 set yaw_p_limit = 300 set iterm_ignore_threshold = 200 set yaw_iterm_ignore_threshold = 50 set rate_accel_limit_roll_pitch = 0 set rate_accel_limit_yaw = 10000

dump rates

rateprofile

rateprofile 0

set rc_expo = 70 set rc_yaw_expo = 20 set thr_mid = 50 set thr_expo = 0 set roll_rate = 20 set pitch_rate = 20 set yaw_rate = 20 set tpa_rate = 0 set tpa_breakpoint = 1500

leper666 commented 7 years ago

In my opinion the problem with the high cpu load is that the i2c bus is notworking as inav ist expecting it to work. I solved the problem by removing the onboard magnetometer. I than had the same problem again after connecting an external magnetometer on my gps module via i2c and activating it. It turned out that the gps module had no supply voltage bevaus the SP3 does not output 5v when power over usb. I connected the battery and then i had all sensors working. Somehow the flight performance was very poor. But the problem for that could have been a faulty ESC. I have to wait for the new ones for further testing.

Best regards,

Denis

krish-90 commented 7 years ago

I was having the same problems mentioned above until I desoldered the HMC5883 chip. As soon as I did that I was able to connect with the iNav configurator and the barometer is connected and working now.

VictorBucha commented 7 years ago

So did I right now - desoldered the HMC5883 after useless effort to power up the board from external source. now everything work fine. Mag will do better when distanced as far as possible from FC. This is definitely a hardware issue