Меню

Navigation is safe inav ошибка

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Closed

Nexus1212 opened this issue

Mar 30, 2017

· 15 comments

Comments

@Nexus1212

Hello,
I use the Inav Version 1.6.1 with a SPRacingF3 and a NZ mini GPS.

In the pre arm setup «navigation is safe» is always red. In the tab GPS is for few seconds my GPS position, then I get a error message.

My problem is I can not arm the fixed wing, if I use a the mode RTH.

@Nexus1212

In thread #1276 the same issuewas discribed, but it was closed without solution.

@digitalentity

It is NOT safe to arm the machine in RTH, PH or WP. This is intentional.

@Nexus1212

RTH is not aktive, if i arm the aircraft. It is only the option available, to activiate RTH via transmitter. I arm in mode Passtrough or acro.

@digitalentity

Safety will block arming in any of the following conditions:

  1. You configured WP/PH/RTH or Failsafe RTH and you don’t have a good accuracy GPS fix
  2. You try to arm into RTH/PH/WP
  3. You have waypoint mission in memory and your first waypoint is too far from your current position

Given it’s a small NZ mini GPS my guess is that accuracy is not good. You need at least 6 sats and position accuracy better than 9 meters (usually HDOP of 5-6 or lower).

@Nexus1212

Thank you for your response!

I had only 5 sats vor gps fix. Do you mean, with 5 sats inav gets no valid GPS fix?

@digitalentity

No 5 sats is not enough for good navigation. Even 6 sats is marginal. I consider at least 7-8 satellites acceptable for flight.

I think we can close this now?

@Nexus1212

Yes, thank you very much! Do you have a cheap recommendation for a gps?

@sppnk

@Nexus1212

Ok, I will buy it 🙂 I hope the shipment to Germany will not take so long.

Thank you

@digitalentity

@sppnk what voltage do you supply to that GPS? 5 or 3.3V? I am considering buying a few

@sppnk

@digitalentity

Great, thanks for the info. Going to buy a few

@laurentopia

Safety will block arming in any of the following conditions:

1. You configured WP/PH/RTH or Failsafe RTH and you don't have a good accuracy GPS fix

2. You try to arm into RTH/PH/WP

3. You have waypoint mission in memory and your first waypoint is too far from your current position

Given it’s a small NZ mini GPS my guess is that accuracy is not good. You need at least 6 sats and position accuracy better than 9 meters (usually HDOP of 5-6 or lower).

  1. How do I NOT arm into WP/PH/RTH if they are part of the modes setup?
  2. how far is too far?
    could we get error messages in the cli to indicate which condition triggers the unsafe?
    thanks.

@Normoa

I’m sat here with my quad connected to INav, and INav showing a ‘Navigation is safe’ error — so unable to arm it.

9 sats, HDOP 2.4 (it’s indoors), Mode is Horizon. INav FC is 2.0.1

This tends to happen often, but I can never get any info as to what the problem is!

@petertorelli

Seconding @Normoa … if navigation is not safe, please explain why it is not safe. Some debug assistance would be great UX.

schs

Резистивный делитель попробовал,не работает.

Тупее его ничего нет, он не может не работать. Проверьте осциллографом уровни.

BX6

Господа, у меня вопрос.
Когда я ставлю failsafe в режим rth, то у меня в арминг чек листе горит красным navigation is safe. Выключаю rth , армится без проблем.
Потом если в модах стоит удержание высоты и розиции по gps — тоже красным navigation is safe.
Подскажите из-за сего может горять эта навигация или что у меня не так?
Спасибо.

У меня та же проблема! Как решили вопрос?

Конфигулятор INAV ,(полетник -Matek F405-ctr, GPS -M8N 8N GPS/BN-880 мини GPS встроенный компас) горит чек navigation is safe и конечно не дает армится , GPS работает 6-7 спутников , если во вкладке Failsave снять галку RTH (возврат домой) и во вкладке Modes
удалить настройки каналов на NAV POSHOLD NAV ALTHOLD , то после перегрузки все работает navigation is safe зеленый как елка! Армится и моторы гудуть! Вопрос? что делаю не так и решить проблему?

даже set nav_extra_arming_safety = OFF не решает вопрос

команда Status

Команда STATUS в CLI дает следующие данные

Entering CLI Mode, type ‘exit’ to return, or ‘help’

# status
System Uptime: 22 seconds
Current Time: 2020-03-08T15:38:04.460+00:00
Voltage: 0.00V (1S battery — NOT PRESENT)
CPU Clock=168MHz, GYRO=MPU6000, ACC=MPU6000, BARO=BMP280, MAG=HMC5883
STM32 system clocks:
SYSCLK = 168 MHz
HCLK = 168 MHz
PCLK1 = 42 MHz
PCLK2 = 84 MHz
Sensor status: GYRO=OK, ACC=OK, MAG=OK, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=OK
SD card: Manufacturer 0x2, 3813376kB, 02/2012, v1.0, ‘SA04G’
Filesystem: Ready
Stack size: 6144, Stack address: 0x10010000, Heap available: 1828
I2C Errors: 0, config size: 5753, max available config: 131072
ADC channel usage:
BATTERY : configured = ADC 1, used = ADC 1
RSSI : configured = ADC 3, used = none
CURRENT : configured = ADC 2, used = ADC 2
AIRSPEED : configured = none, used = none
System load: 6, cycle time: 508, PID rate: 1968, RX rate: 49, System rate: 9
Arming disabled flags: NAV RX CLI

Alekc=

Попробуй 8 спутников впоймать у меня в квартире тоже там красный крестик горит.
В настройках жпс поставь ублокс 8 (по-моему) у меня bn-880 пока шлем одеваю ловит 8 спутников а через пару минут около 20.

BX6

6 спутников по идее достаточно для арминга у меня 7 и 3D горит в скрин
шоте, думаю не в этом дело.Спасибо за любую помощь.

даже set nav_extra_arming_safety = OFF не решает вопрос

JUNov

6 спутников по идее достаточно

Не по идее, а минимальное кол-во настраивается в конфиге на вкладке адвансед тюнинг

tuskan

Вы хотите сказать,что uart “raspberry pi zero” толерантен к 5 вольтам?

про зероху не скажу, но pi3b у меня воткнута прямо в контроллер и безо всяких понижаек уровня.

6 спутников по идее достаточно для арминга у меня 7 и 3D горит в скрин
шоте, думаю не в этом дело.Спасибо за любую помощь.

даже set nav_extra_arming_safety = OFF не решает вопрос

arming_safety = OFF не решает вопросов, а просто разрешает армиться без фикса в НЕНАВИГАЦИОННЫХ режимах.
и кстати, включение этого обхода имеет свои недостатки.
давеча так вот по-быстрому запустил все, автовозлет, потом RTH а он вниз идет. Потому что Landing.
потому что забыл подождать пока спутники поймает.
далее отключаю RTH и промазал — включил акро а не стаб.
Тушка уже метрах в 300, пока сообразил почему оно так, приземлился с фрагментацией тушки в дым.
“а не был бы таким умным, все бы было хорошо”

karabasus

даже set nav_extra_arming_safety = OFF не решает вопрос

Решает, не забыли выполнить save?
И второе нельзя армится в NAV режимах.

сандор

И второе нельзя армится в NAV режимах

В Энджл тоже нельзя, только в ручных?

karabasus

В Энджл тоже нельзя, только в ручных?

А angle как раз можно и нужно.
Это не нав режим. Нельзя только в тех которые автоматические (ртн, удержание позиции, полет по точкам и т.д.)

BX6

Решает, не забыли выполнить save?
И второе нельзя армится в NAV режимах.

save? конечно, спасибо что спросили,

нельзя армится в NAV режимах ,это тож понятно тумблеры вниз))
Спасибо

У меня та же проблема! Как решили вопрос? Конфигулятор INAV ,(полетник -Matek F405-ctr, GPS -M8N 8N GPS/BN-880 мини GPS встроенный компас) горит чек navigation is safe и конечно не дает армится , GPS работает 6-7 спутников , если во вкладке Failsave снять галку RTH (возврат домой) и во вкладке Modes удалить настройки каналов на NAV POSHOLD NAV ALTHOLD , то после перегрузки все работает navigation is safe зеленый как елка! Армится и моторы

Вопрос типо решен, НО. Даже не знаю, при 7 спутнакх и 3D в комнате возле окна ,ни как не удавалось заармится горела ошибка navigation is safe , вынес тело на бакон ,3 мин 6 спутников, ИИИ navigation is safe зеленый ! тублер на старт! И тело загудело)). Остался вопрос , почему кол-во спутников в комнате 7 и кол-во спутников на балконе 6шт т,е, меньше позволило заармить тело? Возможно есть еще какой то параметр о котором нам(мне ) не известно??

сандор

Если я создаю ПРОФИЛЬ 2-3 какие пункты настроек сохраняются, а какие нужно настраивать вновь?

Dmitrij=

Вопрос типо решен, НО. Даже не знаю, при 7 спутнакх и 3D в комнате возле окна ,ни как не удавалось заармится горела ошибка navigation is safe , вынес тело на бакон ,3 мин 6 спутников, ИИИ navigation is safe зеленый ! тублер на старт! И тело загудело)). Остался вопрос , почему кол-во спутников в комнате 7 и кол-во спутников на балконе 6шт т,е, меньше позволило заармить тело? Возможно есть еще какой то параметр о котором нам(мне ) не известно??

В спутниковой системе навигации есть такое понятие, как “Достоверные данные”. Если приемник и знает, где находятся спутники в данный момент, то это не означает, что он получает с них полноценную информацию.

AlexManoylov

Народ привет, нужно ли black box в inav держать постоянно включенным? Насколько сильно запись длительных логов загружает полетник ?

vazon

Братцы, завтра первый облет нового самолета и нужен совет. На руках отхожу с тушкой метров на 20 отрубаю РУ срабатывает FS и высвечивается значок RTN , мотор идет в набор с этим вопросов нет, а вот при включении возврата в менеджере функция активируется , а на ОСД индикации нет. Может нужна высота или другие какие условия?

Как решили вопрос?

сандор

Облетать не удалось, жду погоды, а те сомнения которые я описал развеятся после того как самолет отлетит от точки дом и эти фукции начнут работать, я очень сильно на это надеюсь😁

kriuk

Нужна помощь.
имеется матек F-405. две камеры на борту и электронный переключатель между ними управляемый по PWM. можно ли вывести PWM сигнал с полетника с настроенным каналом ддля работы данного переключателя. Разбираюсь слабо, поэтому просто напишите в кокой контакт на плате воткнуть сигнальный провод от переключателя и что настроить в программе INAV.
Всем откликнувшимся заранее спасибо.

kasatka60

В миксере добавляем сервовыход и указывает какой канал должен выводится с пульта. Потом паямеся проводом к нужному выходу сервы на плате. Может еще во вкладке эдвенс надо включать сервовыходы, но не уверен. Еще надо учеть что нумерация сервов в конфигураторе и на самой плате отличаются на единицу.

kriuk

В миксере добавляем сервовыход и указывает какой канал должен выводится с пульта. Потом паямеся проводом к нужному выходу сервы на плате. Может еще во вкладке эдвенс надо включать сервовыходы, но не уверен. Еще надо учеть что нумерация сервов в конфигураторе и на самой плате отличаются на единицу.

Вот спасибо милый человек. Только ответил как для опытного. А я пока профан. Я думаю что разберусь со всем кроме куда паять провод на плате. Как подписан выход для сервы на плате?

tuskan

Как подписан выход для сервы на плате?

s1 s2… s10
первые выходы обычно под моторы, но на каких то платах при включении серв в режиме мультиротора серва встает на s1

vazon

Настроил в inav полетные режимы запустил крыло в режиме “горизонт” заморковил ЛК. Подскажите микшер правильно настроен, или элевоны отклонились в противоположную сторону, тем самым добавили крен вместо выравнивания?

www.youtube.com/watch?v=OFp-Sm1TNfo

tuskan

Так снимай как он реагирует на наклоны

It’s been a while since I have last used my quadcopter. I have recently got a nice Yi 4K+ actioncam for my STorM32 gimbal, which unlike my previous Mobius actioncam actually has the correct center of mass and weight distribution to work with the gimbal. However I found that I am unable to arm.

The first issue appeared to my GPS, as it refused to get a 3D lock. I suspect the antenna is busted. It never really worked right new. Guess that’s what I get for getting the cheapest GPS on amazon. So I removed it and disabled it in the INAV configurator (2.1.4 PC) . However I still cannot arm my quadcopter. Then I discovered somehow the compass lost it’s calibration, so I re-calibrated it. Now I have the green light for it, but *still* have a red ‘X’ for «Navigation is Safe», and of course cannot arm. Upon further inspection I found that the pitch control on my old FlySky FS-T6 was stuck at ~1100 and barely responded to stick movements! Worse yet the problem was intermittent! I ended up taking my FS-T6 apart to repair it. The POTs FlySky used are absolutely trash. Had to take them apart, clean them, bend the wipers to have more tension on the carbon track and hammer the rivets connecting the pins to the carbon tracks. Now all channels appear to work reliably. Great! But yet «navitagion is safe» is still red!! WTF now!?

All sensors appear to be providing data, no I2C errors, CPU load ~3%, nothing obvious in the main setup window failsafe is not red (as it is when the transmitter is off) Mixer appears to be fine, no waypoints are set, it does not appear to matter what flight-mode I set it do (with my 3 way positional switch) GPS is disabled in the configuraion tab, GPS tab, and Ports tab… No idea what could possibly be the issue, and INAV is really not very good telling me what the problem is for this. Any ideas?


I’m not new to multi-rotors, but I tend to not fiddle around with them when they’re working, so quickly forget the ins and outs of configuration and setup.

This time I’m configuring an FrSky SPRacing F3 EVO board in a hexcopter using iNav. Everything is fine in configurator except that I’ve still got a red ‘Navigation is safe’ icon in the Configurator Setup page. All symbols at the top of the page are blue except for the red failsafe parachute. My failsafe settings (which I’ve never altered from default in the past) are Failsafe Kill switch not activated, and the ‘Land’ box is checked under the ‘Procedure’ heading, with throttle value for landing = 1000 and delay for turning off motors = 200.

In configurator the receiver responds correctly, the motors respond correctly, and I’ve got a solid GPS fix. Accelerometer and compass calibrations were carried out successfully. And the model is level.

So any ideas what might be causing the Navigation is NOT safe notification please? When I disconnect from my PC, and power the unit up with the flight battery, the beeper keeps going at about 2 beeps per second, and there’s no response to throttle input.

Sign up now

to remove ads between posts

Are you getting a GPS fix on enough satelites? If GPS is not locked, then you can’t arm.

Thanks, that might be the issue. I’m indoors so I’m only getting 4 sats, though it does say I’ve got a 3D fix, and it shows my location correctly on the map. I seem to recall that there’s a setting for minimum number of sats, so I’ll check that out tomorrow, and reduce it for testing purposes.

Nope, that’s not the cause

I’ve set the minimum number of sats to 5 (the lowest it will go) and I’ve got 7 sats this afternoon, but the red X is still there. But it did then allow me to arm the hex and run the motors under Tx control, so something’s changed because yesterday there was no response when I tried to use the Tx.

I also notice, when I’m connecting my hex to iNav Configurator, that I get a message that I need to update my firmware before I can use the Advanced tab. Which firmware? I’m using Configurator 2.2.1 and iNav 2.2.1 at the moment.

Oldgazer's Avatar

FWIW, I’ve dumped iNav. The firmware is «ok» for what it is (a rewrite of CleanFlight), but the Navigation side really needs some work.

I have no idea what frame you are using, but if its larger than 450mm, I’d go with a Pixhawk running ArduCopter.

Yes, you mentioned Pixhawk running Arducopter in another thread of mine a while back, but I’ve got unused boards in my workshop that I want to use, rather than buying new ones and learning a new programming language

It’s a 550 hexcopter. I’m using an FrSky SPRacing F3 EVO board because I already have it and because it can handle 6 motor channels. I’ve had the same electronics in a 450 quadcopter for a few years now, and have no issues with iNav for the kind of gentle flying I do — line-of-site flying in Angle mode, Position Hold, and Return to Home all work reliably for me so far. The only physical difference between this hex and the quad is that the hex is using a Naza GPS/compass which sends all data down the Rx and Tx lines, instead of separate lines for the compass.

I’m still not sure what the red X is about. The other day I managed to get the motors responding to transmitter control, but the motors started slowly as soon as I armed it, even though I’ve checked the ‘Don’t spin motors when armed’ box. I haven’t looked into that issue yet, and haven’t tried a hover due to other distractions. If there’s nothing obvious I might go back to whatever iNav version I have in the quad that’s flying good.

Oldgazer's Avatar

OK, get that.

How about posting a screen shot that shows that red ‘X’..

OK, I’ll post shots of some of the relevant screens, but it will be a couple of days before I can do that.

flyandride's Avatar

With radio and quad powered and connected to configurator, go to the CLI, type status and hit enter. You will see a list of arming flags that can give you some info as to what’s going on.

I’ve been using iNav for 2 years + and have used an F3 Evo board because I had it around. Not so good. Matek boards have worked perfectly and are the only ones recommended.

Thanks flyandride. I’ll check out the status tomorrow.

Oldgazer's Avatar

The only thing I can see is you have ZERO volts for battery voltage which is triggering fail safe.

On the Mixer tab you may want to click Load and Apply to make sure the Hex mixer is actually enabled.

Thanks for looking Oldgazer. In some other screen I’d actually switched off the ‘monitor battery voltage’ option because I always fly by my timer, so presumably 0v shouldn’t trigger any problem. Or should I be seeing «N/A» against the battery voltage if monitoring it is disabled?

Oldgazer's Avatar

Quote:

Originally Posted by abenn

Thanks for looking Oldgazer. In some other screen I’d actually switched off the ‘monitor battery voltage’ option because I always fly by my timer, so presumably 0v shouldn’t trigger any problem. Or should I be seeing «N/A» against the battery voltage if monitoring it is disabled?

I have no clue. I NEVER turn off battery monitoring. Try turning it on and see what happens….

I should have done this earlier: I’ve just gone through the setup for my quad which is using iNav successfully, and I see that all the relevant settings are the same as for this hex. Battery voltage and amps monitoring are both turned off on both machines, and the battery voltage is showing 0v on the quad, just like on the hex, so that in itself is not an issue.

There’s only one difference in the status printout which might be significant: In the final line for the hex it says «Arming disabled flags: 0x140800», but for my quad the same line says «Arming disabled flags NAV RX CLI». Does that mean anything?

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

The following is information pertaining to your flight controller. Please refer to this if you have issues with it’s setup. So if you have problems not allowing you to get the plane ready for maiden, or if an issue creeps up after many successful flights. If this doesn’t fix your problem, please see the Further support section at the end.

The flight controller won’t arm

Check the Setup page for pre-arming errors. INAV is wonderful because the red flags clearly tell you where the source of your problems are.

Go into the CLI page and type status hit RETURN. In the last line it should ONLY show CLI. If there is any other errors this is also where to start investigating.

The flight controller arms but motor won’t spin

Check the battery. Is it fully charged?

Do the servos react to stick inputs? 

INAV status display

Check ARM status at the top of the Configutator when connected: Triangle sign needs to be yellow, chute symbol grey and chain symbol blue. If you see these three things, then it is armed. Still no motor reaction? go to next step.

In the Outputs page, check the ESC Protocol on the left side. Set it to STANDARD and Click Save and Reboot. This is, because a lot of linear (plane) ESCs don’t support advanced Protocols like Multishot or DSHOT.

If there is still no reaction, go to Outputs page, flick the switch to agree the security warning and turn throttle up CAREFULLY. It’s best to do this without a prop. If you have a prop it will likely spin.

Still not working? Check your cabling. Test the ESC with a Servo tester or try with another ESC on the FC to exclude a defective ESC or possible defect FC.

I don’t get any GPS Satellites

Attach Battery to the FC and connect to configurator via a USB cable

Is the GPS symbol in the top bar blue? If yes, cabling is fine and you should go outside to test again. However, if it is red, check your cabling first. Switch RX/TX cables on the FC side. Make sure TX on FC is connected to RX on GPS and vice versa.

Got to the GPS page and look for the value for Total messages. If this number is going up, the GPS is working, you should try outside or near a window.

Still no luck? Go to Ports page and check if the GPS is configured to the correctly, to the UART where it is plugged in.

If the port is correct, try different BAUD rates. Default is 115200. Try to lower it step by step and always Save and Reboot.

If you still don’t get any GPS data or you see a red symbol, try another UART. Ddo not use UART 2, that is for receiver only on most common F3 and F4 Flight Controllers.

Still no link to the GPS module? Most likely defective GPS unit or incompatible, try another one. Recommended is a genuine UBLOX M8N or a BN-220.

My Receiver is not reacting at all

Firstly, check for correct binding and connection;see your receivers manual. You will need to confirm a binding light is on. Then go to here.

Is the correct Receiver Port selected in the Ports page? On F3 and F4 it is most likely UART 2; and because of tradition, by default also on most F7 targets. If you’re uncertain, ask in the group. Once that’s ok, go here.

Is the cabling is correct according to the FC manual? Check at least 3 times before you continue! Go here.

Check Receiver Mode in Configuration page: FlySky, FrSky, Spectrum, TBS and most actual receivers need to be set to “Serial based Receiver”. Continue here.

Set the correct Receiver Provider: FlySky – IBUS, FrSky – SBUS, TBS – TBS Crossfire, and so on. Check the receiver manual

Some very tiny micro receivers, especially for FlySky, only support the PPM analogue protocol. PWM is obsolete these days unless you have a very special FC that supports one wire per channel connection. Most current flight controllers (F4 and newer) don’t support this.

Omnibus often has an SBus tab that you need to solder. It’s tiny. It’s next to the UART 1 pins most of the time.

Check the Receiver tab. Is it working? When you move the sticks are you seeing the bars change on the screen? If no sign of inputs, your receiver is defective or you did something wrong such as the cable is in the wrong port on the receiver, or it’s plugged in backwards. If the input is there but strange, we cover this in the next section.

My Receiver shows strange readouts

If there is one channel that jitters the whole time, you’re likely using a FrSky System and this is your your RSSI value. It does depend on your receiver and on your transmitter settings what channel is used for channel RSSI and if it is active at all.

If the channel order is wrong, you will find that moving a stick on your transmitter moves the wrong bar in the Receivers page. So to resolve this, change the Channel order via drop down list and see if one fits. Note: Default on a Taranis is RETA (Rudder, Elevator, Throttle, Aileron). You should change this in the radio to AETR. There is no option for RETA in the INAV drop down list. You could write a channel order for RETA. But, every time you flash the firmware you’ll be doing it again. It’s best to pick AETR, TEAR, or one of the other channel orders in your radio. Then you’ll never have to worry about it again.

If this does not help, reset the plane profile to default on your transmitter. The most common problem is that you set up the transmitter for a flying wing or V-tail. You shouldn’t do any mixing on the transmitter when using INAV. Yes you can fix this, but it’s often faster to go into your radio and set up a new model. Even if you are flying an elevon model, with no rudder; use a default setup with a plane that has Aileron, Elevator, Throttle and Rudder. This seems counter-intuitive. But, when you select a mixer in the mixer page, the flight controller decides how to handle your plane. You will need to get used to the idea that the flight controller, not the radio, does the thinking for you. We also don’t use radio trim once a plane is fully tuned in INAV. 

Still no luck? You can set a manual order. Check what stick axis does move what channel (1-4) on this screen. Then manually write your mapping in the top line.

Aileron, Elevator, Throttle, Rudder, is the default order used by INAV.

Some Pre-Arm Checks fail, what can I do?

UAV is levelled

This should be self explanatory. By Default, the pitch and roll level must not have more than 25° angle, compared to flat level. This is very important for copters but can be changed to 180° for fixed wing to allow easy arming when carrying.

Run-time Calibration

This is the boot-up calibration and self-test of all sensors. Especially for the Gyro that is calibrated to zero on every boot. To get that checked, do not touch the plane/copter after plugging in the battery, for a few seconds, until you here the 3 beeps via buzzer or at least wait 5s without touching. It is possible for something to get corrupted in the firmware of your flight controller. If this warning never goes away, no matter what you do, it’s time to flash the firmware again.

CPU Load

If the CPU load is too high to keep the loop time constant or it is fluctuation too much because of sensor issues, this will inform you. Lower CPU load by lowering loop frequency or disable unnecessary sensors. The ARM processor in the Micro-controller is far too strong for your flight controller. The amount of processing required is far too simple for it. If you see this error and lowering the loop frequency doesn’t fix it, yes, re-flash the firmware.

Navigation is safe

This pertains to any GPS related issues. No fix- You’re indoors you may not see satellites. You need to see six of them, at least. GPS communication errors and so on.

Compass Calibrated

Invalid Compass readings, calibrate it correctly. Be Careful: NEVER 100% trust this check! Better to do one calibration more than one too few and lose your plane in RTH. Or just don’t use it if you have issues. It is not needed on planes.

Accelerometer calibrated

Self explanatory. Do it outside of the plane and as precise as possible. You will never need to do again if you save your calibration values from CLI.

Settings Validated

If you update to a new version, this could be triggered if some parameters have changed or settings become invalid. Check CLI “STATUS” to see if there is an issue or reflash and reconfigure from scratch.

Hardware health

Any Sensor is configured but not available or has bad readings. Check CLI “STATUS” for details.

Further assistance

INAV has a fairly steep learning curve. We all get stuck once in a while. There are a three things you should check before asking for help:

Are you using old and potentially damaged parts?

A lot of quad guys have tons of parts sitting around from crashed quads. This helps to keep the cost of the hobby down which is a good thing. Before you start installing these parts, set up the receiver, speed controller, motor and servos and make certain that they are all working. If you plan on flying a fixed wing you really need to own a servo tester. They are usually less than $10. Sometimes servos are bad from the factory. You need to check the full movement of the servo and insure they are smooth. Broken teeth in the servo gear are fairly common in plastic gear servos. Some of the Hitec servos have replacement parts. Most don’t. When they fail, and you really aren’t in a position to fix them you simply throw them away. Cut off the servo wires before you do, you can use them.

The motors often have bearings that can be replaced, there are good videos on how to do this. Since most motors are cheap these days not many people are rewinding the coils anymore. They are also disposable.

Speed controllers sometimes burn out. Some people have been known to fix them. If this is your thing, go for it. Otherwise, they are usually disposable as well.

GPS units sometimes die in a crash or go bad due to bad wiring, throw them away if they fail.

When you get into a build, please fully check out your hardware before contacting others for help. Also check your wiring. Sometimes when tying down cables the wires get pulled and shorted.

What version of the configurator are you using? 

INAV has different versions of the configurator. You need to be using the same version of the configurator as the firmware. At least to the first sub-version. For example, if you have firmware 2.4.0; you must use a configurator that starts with 2.4, usually the latest version in that group. The most current version can be found here. https://github.com/iNavFlight/inav-configurator/releases

Even if you can log into your flight controller without issue on an older version, you should still update to the latest version. Sometimes there are configuration issues that have been addressed in the newest configurator. One other thing, when you flash INAV, be certain that you reboot your PC and try and plug your USB cable into the back of the computer. Do a full chip erase. The stand alone (not the Chrome extension) program is often the newest configurator. You will need to launch this program from your computer, not Chrome.

See if you can find your issue here:

https://github.com/iNavFlight/inav/issues

Note about Clone Flight Controllers

We often steer people away from large, expensive planes for their first builds. We have a list of suggested first build planes because they can withstand a bit of abuse as you are figuring things out. INAV has a list of supported boards. There is a list of supported boards that the people at INAV have tested and have found to work. The ones they have links to are boards they have tested and have faith in. When you click through and buy from their vendor, INAV gets a piece of the sale. You are helping to support INAV.

There are many clones in the market. Clones are iffy. Some are okay, many are not. Very often the issue is that the 5v BEC will fail if it’s built into the board. You are running clones boards at your own risk. If you are getting strange problems, take a moment and go to the vendor page of the flight controller you purchased. They will list the legitimate vendors. Go back to where you purchased your board, read the ad again. If it says “Raceday (or whatever) Matek F405 Wing, you have purchased a clone. One of our members lost a $400 plane, because his 2 month old clone F405-Wing board lost it’s +5V. He had no control as it crashed into the ground. His plane weighed 7 pounds. He’s lucky he didn’t injure anybody create property damage.

When you ask for help please provide the following information

  1. What flight controller you’re using? Is it a clone?
  2. Which plane it’s going in?
  3. What version of INAV are you running?
  4. What version of INAV Configurator are you using? It’s in the top left corner.
  5. Have you checked all the parts before installing them to ensure they work?
  6. Have you checked your solder connections under high power magnification?
  7. You have followed the setup guide for INAV Fixed Wing?

When you describe your problem, be specific.

Example of a bad question

Help, my motor won’t spin?

Example of a good question

My motor won’t spin. I have an F405-Wing, it’s going in a Mini Drak. I am running INAV 2.1 and my INAV configurator is 2.1.4. I’ve checked all the parts before installing them and they worked. I have triple checked my soldering and I have built other INAV planes before. But, I did check the guide to make sure I didn’t overlook anything. I have enabled the servos and motor and have looked in the troubleshooting guide. I’d appreciate any help.

Often, someone who can help you will read the top post but will lose interest. Its quicker to reply if we don’t have to get all this information out of you, and the thread is 20 replies of information finding. So, the best thing you can do to get help is to be specific about your problem at the top of the post.

What if we can’t help you?

Go here and file a support ticket. https://github.com/iNavFlight/inav/issues.

Failsafe

Failsafe is a state the flight controller is meant to enter when the radio receiver loses the RC link. Any of these of these conditions will trigger it:

  • Any flight channel (pitch, roll, throttle or yaw) sends no pulses
  • Any channel is outside the valid range between rx_min_usec and rx_max_usec
  • The FAILSAFE aux mode is activated

If the failsafe happens while the flight controller is disarmed, it only prevent arming. If it happens while armed, the failsafe policy configured in failsafe_procedure is engaged. The available procedures are:

  • DROP: Just kill the motors and disarm (crash the craft).
  • LAND: (replaces SET-THR from INAV 4.0) Performs an Emergency Landing. Enables auto-level mode (for multirotor) or enters a preconfigured roll/pitch/yaw spiral down (for airplanes). If altitude sensors are working an actively controlled descent is performed using the Emergency Landing descent speed (nav_emerg_landing_speed). If altitude sensors are unavailable descent is performed with the throttle set to a predefined value (failsafe_throttle). The descent can be limited to a predefined time (failsafe_off_delay) after which the craft disarms. This is meant to get the craft to a safe-ish landing (or more realistically, a controlled crash). Other than using altitude sensors for an actively controlled descent it doesn’t require any extra sensors other than basic gyros and accelerometers.
  • SET-THR: (Pre INAV 4.0) Same as LAND except it doesn’t use an Emergency Landing but is limited instead to just setting the throttle to a predefined value (failsafe_throttle) to perform a descent. It doesn’t require any extra sensors other than basic gyros and accelerometers.
  • RTH: (Return To Home) One of the key features of INAV, it automatically navigates the craft back to the home position and (optionally) lands it. Similarly to all other automated navigation methods, it requires GPS for any type of craft, plus compass and barometer for multicopters.
  • NONE: Do nothing. This is meant to let the craft perform a fully automated flight (eg. waypoint flight) outside of radio range. Highly unsafe when used with manual flight.

Note that:

  • Should the failsafe disarm the flight controller (DROP, LAND/SET-THR after failsafe_off_delay or RTH with nav_disarm_on_landing ON), the flight controller will be disarmed and re-arming will be locked until the signal from the receiver is restored for 30 seconds AND the arming switch is in the OFF position (when an arm switch is in use).

  • Prior to starting failsafe it is checked if the throttle position has been below min_throttle for the last failsafe_throttle_low_delay seconds. If it was, the craft is assumed to be on the ground and is simply disarmed. This feature can be disabled completely by setting failsafe_throttle_low_delay to zero, which may be necessary to do if the craft may fly long with zero throttle (eg. gliders).

Notes about safety

  • If the craft is landed but armed, the failsafe may make the motors and props spin again and even make the craft take off (in case of RTH failsafe). Take expecially care of this when using MOTOR_STOP feature. Props will spin up without warning. Have a look at the failsafe_throttle_low_delay setting explained above to learn when this could happen.

  • If any required navigation sensor becomes unavailable during a Return to Home (eg. loss of GPS fix), an emergency landing, as used by the LAND procedure, will be performed after a short timeout. An emergency landing would also be performed right when the failsafe is triggered if any required sensor is reported as unavailable.

  • The SET-THR procedure doesn’t control descent in any way other than setting a fixed throttle. This is also the case for the LAND procedure when altitude sensors are unavailable. Thus, appropriate testing must be performed to find the right throttle value. Consider that a constant throttle setting will yield different thrusts depending on battery voltage, so when you evaluate the throttle value do it with a loaded battery. Failure to do so may cause a flyaway.

  • When the failsafe mode is aborted (RC signal restored/failsafe switch set to OFF), the current stick positions will be enforced immediately. Be ready to react quickly.

RX configuration

In order to engage failsafe mode correctly, you must configure your receiver to do one of the following on signal loss:

  • Send no signal/pulses over the channels
  • Send an invalid signal over the channels (for example, send values lower than rx_min_usec)
  • Set an aux channel to engage FAILSAFE mode.

and

  • Ensure your receiver does not set any aux channel so that the craft would disarm.

Failsafe Settings

Failsafe delays are configured in 0.1 second units. Distances are in centimeters (1/100 of a meter).

Parameters relevant to all failsafe procedures

failsafe_procedure

Selects the failsafe procedure. Valid procedures are DROP, LAND/SET-THR, RTH and NONE. See above for a description of each one.

failsafe_delay

Guard time for failsafe activation when rx channel data is lost or invalid. This is the amount of time the flight controller waits to see if it begins receiving a valid signal again before activating failsafe. Does not apply when activating the FAILSAFE aux mode.

failsafe_recovery_delay

Guard time for failsafe de-activation after signal is recovered. This is the amount of time the flight controller waits to see if the signal is consistent before turning off failsafe procedure. Usefull to avoid swithing in and out of failsafe RTH. Does not apply when disactivating the FAILSAFE aux mode.

failsafe_stick_threshold

This parameter defines recovery from failsafe by stick motion. When set to zero failsafe procedure will be cleared as soon as RC link is recovered. When this is set to a non-zero value — failsafe won’t clear immediately when if RC link is recovered, you will have to move any of Roll/Pitch/Yaw sticks more than this value to exit failsafe.

The use-case is the Return To Home failsafe: when on the edge of radio coverage you may end up entering and exiting failsafe if radio link is sporadic — happens a lot with long-range pilots. Setting failsafe_stick_threshold to a certain value (i.e. 100) RTH will be initiated on first signal loss and will continue as long as pilots want it to continue. When RC link is solid (based on RSSI etc) pilot will move sticks and regain control.

failsafe_throttle_low_delay

Time throttle level must have been below ‘min_throttle’ to only disarm instead of full failsafe procedure. Set to zero to disable.

failsafe_min_distance

If failsafe happens when craft is closer than this distance in centimeters from home, failsafe will not execute regular failsafe_procedure, but will execute procedure specified in failsafe_min_distance_procedure instead. 0 = Normal failsafe_procedure always taken.

failsafe_min_distance_procedure

What failsafe procedure to initiate in Stage 2 when craft is closer to home than failsafe_min_distance.

rx_min_usec

The lowest channel value considered valid.

rx_max_usec

The highest channel value considered valid.

Parameters relevant to RTH failsafe procedure

nav_min_rth_distance

If the failsafe happens while the craft is within this distance from the home position, the home position is considered immediately reached.

nav_rth_climb_first

If ON the craft rises to nav_rth_altitude before heading to home position. if OFF the craft climbs on the way to home position.

nav_rth_climb_ignore_emerg

When this option is OFF (default) and when you initiate RTH without GPS fix — aircraft will initiate emergency descent and go down. If you set this option to ON — aircraft will reach the RTH target altitude before initiating emergency descent. This is done for cases where GPS coverage is poor (i.e. in the mountains) — allowing UAV to climb up might improve GPS coverage and allow safe return instead of landing in a place where UAV might be impossible to recover.

nav_rth_tail_first

Only relevant for multirotors. If this is OFF the craft will head to home position head first, if ON it’ll be tail first

nav_rth_altitude

The altitude used as reference for the RTH procedure.

nav_rth_alt_mode

How and when to reach nav_rth_altitude. Please read the page on the wiki for a description of the available modes.

nav_rth_abort_threshold

If the craft increases its distance from the point the failsafe was triggered first by this amount, RTH procedure is aborted and an emergency landing is initiated. It’s meant to avoid flyaways due to navigation issues, like strong winds.

nav_rth_allow_landing

Enables landing when home position is reached. If OFF the craft will hover indefinitely over the home position.

nav_disarm_on_landing

Instructs the flight controller to disarm the craft when landing is detected

Parameters relevant to LAND/SET-THR failsafe procedure

failsafe_off_delay

Delay after failsafe activates before motors finally turn off. This is the amount of time ‘failsafe_throttle’ is active. If you fly at higher altitudes you may need more time to descend safely. Set to zero to keep failsafe_throttle active indefinitely.

nav_emerg_landing_speed

(LAND only) Actively controlled descent speed when altitude sensors are available. If altitude sensors aren’t available landing descent falls back to using the fixed thottle setting failsafe_throttle so ensure this is also set correctly.

failsafe_throttle

Throttle level used for landing. Specify a value that causes the aircraft to descend at about 1M/sec. Default is set to 1000 which should correspond to throttle off.

failsafe_fw_roll_angle

This parameter defines the amount of roll angle (in 1/10 deg units) to execute on failsafe. Negative = LEFT

failsafe_fw_pitch_angle

This parameter defines the amount of pitch angle (in 1/10 deg units) to execute on failsafe for an airplane. Negative = CLIMB

failsafe_fw_yaw_rate

This parameter defines the amount of yaw rate (in deg per second units) to execute on failsafe for an airplane. Negative = LEFT

Failsafe

Failsafe is a state the flight controller is meant to enter when the radio receiver loses the RC link. Any of these of these conditions will trigger it:

  • Any flight channel (pitch, roll, throttle or yaw) sends no pulses
  • Any channel is outside the valid range between rx_min_usec and rx_max_usec
  • The FAILSAFE aux mode is activated

If the failsafe happens while the flight controller is disarmed, it only prevent arming. If it happens while armed, the failsafe policy configured in failsafe_procedure is engaged. The available procedures are:

  • DROP: Just kill the motors and disarm (crash the craft).
  • LAND: (replaces SET-THR from INAV 4.0) Performs an Emergency Landing. Enables auto-level mode (for multirotor) or enters a preconfigured roll/pitch/yaw spiral down (for airplanes). If altitude sensors are working an actively controlled descent is performed using the Emergency Landing descent speed (nav_emerg_landing_speed). If altitude sensors are unavailable descent is performed with the throttle set to a predefined value (failsafe_throttle). The descent can be limited to a predefined time (failsafe_off_delay) after which the craft disarms. This is meant to get the craft to a safe-ish landing (or more realistically, a controlled crash). Other than using altitude sensors for an actively controlled descent it doesn’t require any extra sensors other than basic gyros and accelerometers.
  • SET-THR: (Pre INAV 4.0) Same as LAND except it doesn’t use an Emergency Landing but is limited instead to just setting the throttle to a predefined value (failsafe_throttle) to perform a descent. It doesn’t require any extra sensors other than basic gyros and accelerometers.
  • RTH: (Return To Home) One of the key features of INAV, it automatically navigates the craft back to the home position and (optionally) lands it. Similarly to all other automated navigation methods, it requires GPS for any type of craft, plus compass and barometer for multicopters.
  • NONE: Do nothing. This is meant to let the craft perform a fully automated flight (eg. waypoint flight) outside of radio range. Highly unsafe when used with manual flight.

Note that:

  • Should the failsafe disarm the flight controller (DROP, LAND/SET-THR after failsafe_off_delay or RTH with nav_disarm_on_landing ON), the flight controller will be disarmed and re-arming will be locked until the signal from the receiver is restored for 30 seconds AND the arming switch is in the OFF position (when an arm switch is in use).

  • Prior to starting failsafe it is checked if the throttle position has been below min_throttle for the last failsafe_throttle_low_delay seconds. If it was, the craft is assumed to be on the ground and is simply disarmed. This feature can be disabled completely by setting failsafe_throttle_low_delay to zero, which may be necessary to do if the craft may fly long with zero throttle (eg. gliders).

Notes about safety

  • If the craft is landed but armed, the failsafe may make the motors and props spin again and even make the craft take off (in case of RTH failsafe). Take expecially care of this when using MOTOR_STOP feature. Props will spin up without warning. Have a look at the failsafe_throttle_low_delay setting explained above to learn when this could happen.

  • If any required navigation sensor becomes unavailable during a Return to Home (eg. loss of GPS fix), an emergency landing, as used by the LAND procedure, will be performed after a short timeout. An emergency landing would also be performed right when the failsafe is triggered if any required sensor is reported as unavailable.

  • The SET-THR procedure doesn’t control descent in any way other than setting a fixed throttle. This is also the case for the LAND procedure when altitude sensors are unavailable. Thus, appropriate testing must be performed to find the right throttle value. Consider that a constant throttle setting will yield different thrusts depending on battery voltage, so when you evaluate the throttle value do it with a loaded battery. Failure to do so may cause a flyaway.

  • When the failsafe mode is aborted (RC signal restored/failsafe switch set to OFF), the current stick positions will be enforced immediately. Be ready to react quickly.

RX configuration

In order to engage failsafe mode correctly, you must configure your receiver to do one of the following on signal loss:

  • Send no signal/pulses over the channels
  • Send an invalid signal over the channels (for example, send values lower than rx_min_usec)
  • Set an aux channel to engage FAILSAFE mode.

and

  • Ensure your receiver does not set any aux channel so that the craft would disarm.

Failsafe Settings

Failsafe delays are configured in 0.1 second units. Distances are in centimeters (1/100 of a meter).

Parameters relevant to all failsafe procedures

failsafe_procedure

Selects the failsafe procedure. Valid procedures are DROP, LAND/SET-THR, RTH and NONE. See above for a description of each one.

failsafe_delay

Guard time for failsafe activation when rx channel data is lost or invalid. This is the amount of time the flight controller waits to see if it begins receiving a valid signal again before activating failsafe. Does not apply when activating the FAILSAFE aux mode.

failsafe_recovery_delay

Guard time for failsafe de-activation after signal is recovered. This is the amount of time the flight controller waits to see if the signal is consistent before turning off failsafe procedure. Usefull to avoid swithing in and out of failsafe RTH. Does not apply when disactivating the FAILSAFE aux mode.

failsafe_stick_threshold

This parameter defines recovery from failsafe by stick motion. When set to zero failsafe procedure will be cleared as soon as RC link is recovered. When this is set to a non-zero value — failsafe won’t clear immediately when if RC link is recovered, you will have to move any of Roll/Pitch/Yaw sticks more than this value to exit failsafe.

The use-case is the Return To Home failsafe: when on the edge of radio coverage you may end up entering and exiting failsafe if radio link is sporadic — happens a lot with long-range pilots. Setting failsafe_stick_threshold to a certain value (i.e. 100) RTH will be initiated on first signal loss and will continue as long as pilots want it to continue. When RC link is solid (based on RSSI etc) pilot will move sticks and regain control.

failsafe_throttle_low_delay

Time throttle level must have been below ‘min_throttle’ to only disarm instead of full failsafe procedure. Set to zero to disable.

failsafe_min_distance

If failsafe happens when craft is closer than this distance in centimeters from home, failsafe will not execute regular failsafe_procedure, but will execute procedure specified in failsafe_min_distance_procedure instead. 0 = Normal failsafe_procedure always taken.

failsafe_min_distance_procedure

What failsafe procedure to initiate in Stage 2 when craft is closer to home than failsafe_min_distance.

rx_min_usec

The lowest channel value considered valid.

rx_max_usec

The highest channel value considered valid.

Parameters relevant to RTH failsafe procedure

nav_min_rth_distance

If the failsafe happens while the craft is within this distance from the home position, the home position is considered immediately reached.

nav_rth_climb_first

If ON the craft rises to nav_rth_altitude before heading to home position. if OFF the craft climbs on the way to home position.

nav_rth_climb_ignore_emerg

When this option is OFF (default) and when you initiate RTH without GPS fix — aircraft will initiate emergency descent and go down. If you set this option to ON — aircraft will reach the RTH target altitude before initiating emergency descent. This is done for cases where GPS coverage is poor (i.e. in the mountains) — allowing UAV to climb up might improve GPS coverage and allow safe return instead of landing in a place where UAV might be impossible to recover.

nav_rth_tail_first

Only relevant for multirotors. If this is OFF the craft will head to home position head first, if ON it’ll be tail first

nav_rth_altitude

The altitude used as reference for the RTH procedure.

nav_rth_alt_mode

How and when to reach nav_rth_altitude. Please read the page on the wiki for a description of the available modes.

nav_rth_abort_threshold

If the craft increases its distance from the point the failsafe was triggered first by this amount, RTH procedure is aborted and an emergency landing is initiated. It’s meant to avoid flyaways due to navigation issues, like strong winds.

nav_rth_allow_landing

Enables landing when home position is reached. If OFF the craft will hover indefinitely over the home position.

nav_disarm_on_landing

Instructs the flight controller to disarm the craft when landing is detected

Parameters relevant to LAND/SET-THR failsafe procedure

failsafe_off_delay

Delay after failsafe activates before motors finally turn off. This is the amount of time ‘failsafe_throttle’ is active. If you fly at higher altitudes you may need more time to descend safely. Set to zero to keep failsafe_throttle active indefinitely.

nav_emerg_landing_speed

(LAND only) Actively controlled descent speed when altitude sensors are available. If altitude sensors aren’t available landing descent falls back to using the fixed thottle setting failsafe_throttle so ensure this is also set correctly.

failsafe_throttle

Throttle level used for landing. Specify a value that causes the aircraft to descend at about 1M/sec. Default is set to 1000 which should correspond to throttle off.

failsafe_fw_roll_angle

This parameter defines the amount of roll angle (in 1/10 deg units) to execute on failsafe. Negative = LEFT

failsafe_fw_pitch_angle

This parameter defines the amount of pitch angle (in 1/10 deg units) to execute on failsafe for an airplane. Negative = CLIMB

failsafe_fw_yaw_rate

This parameter defines the amount of yaw rate (in deg per second units) to execute on failsafe for an airplane. Negative = LEFT

На чтение 9 мин. Просмотров 113 Опубликовано 12.06.2022

Содержание

  1. ✔ ставим gps, барометр и компас на дальнолет, настройка, калибровка, нюансы прошивки [прошивка inav] квадрокоптер
  2. Battery voltage
  3. Board and sensor alignment
  4. Other features
  5. Reciever mode
  6. Sensors
  7. Вкладка cli
  8. Вкладка configuration
  9. Вкладка failsafe
  10. Вкладка led strip
  11. Вкладка modes
  12. Вкладка ports
  13. Внешний компас – apm copter team
  14. Вопросы по inav
  15. Какими должны быть “правильные” значения компаса при калибровке phantom 3? – rc faq
  16. Опции темы

Нет комментариев. Ваш будет первым!

Battery voltage

Включил опцию «Battery voltage monitor» для активации индикатора заряда батареи. Остальные параметры я не менял, так как показания заряда соответствуют действительности. Если же в них есть погрешность, её можно убрать настройкой «Voltage Scale».

Board and sensor alignment

Указал, что мой ПК повёрнут на 90 градусов по оси yaw. Корректность этого параметра потом можно проверить во вкладке Setup. Компас у той модели U-blox NEO-M8N, что использую я, бывает повёрнут на 270 или 180 градусов. Кроме того, он расположен на нижней части платы, что тоже надо учитывать. Так что для компаса надо выбирать CW270 FLIP или CW180 FLIP.

Other features

iNAV Configurator, вкладка Configuration

Reciever mode

Выбрал протокол радиоприёмника RX_PPM.

Sensors

Здесь ничего не менял, прошивка сама распознала мои датчики.

Вкладка cli

Несмотря на удобный конфигуратор, здесь тоже предстоит кое-что сделать. Для начала надо откалибровать каналы. Я уже писал как сделать это на передатчике, но, как оказалось, лучше делать это в прошивке ПК. Итак, сперва надо во вкладке Reciever посмотреть и запомнить крайние показатели всех четырёх каналов управления. Например, они такие:

Затем нужно сообщить эти диапазоны прошивке. Делается это следующими командами:

rxrange 0 1050 1950 rxrange 1 990 1992 rxrange 2 990 2022 rxrange 3 1070 1980

Крайние точки теперь настроены, а вот центральные всё равно придётся настраивать на передатчике. Далее я ввёл некоторые настройки, адаптированные для маленьких рам. Их список находится здесь.

set p_pitch = 55 set i_pitch = 40 set d_pitch = 15 set p_roll = 55 set i_roll = 40 set d_roll = 15 set p_yaw = 90 set i_yaw = 45 set d_yaw = 20 set p_level = 20 set i_level = 15 set d_level = 75 set gyro_lpf = 256hz set tpa_rate = 10 set tpa_breakpoint = 1650 set looptime = 1000 set gyro_sync = on set gyro_sync_denom = 8

Опытным путём (то есть, в поле) надо определить газ висения и задать как значение переменной nav_mc_hover_thr. Оно будет использовано в режиме ALTHOLD. Если фактический газ висения будет отличается от заданного, то при активации режима удержания высоты, квадрокоптер будет сильно просаживатся или подпрыгивать.

Чтобы квадрокоптер армился в любом положении (даже вверх ногами), надо прописать:

set small_angle = 180

В iNAV много внимания уделено всевозможной защите. Выше уже упоминалась блокировка запуска моторов при неоткалиброванных датчиках. Кроме этого, есть переменные inav_gps_min_sats и nav_extra_arming_safety. Первая отвечает за минимальное количество спутников GPS, которые надо «поймать» для арминга, вторая разрешает/запрещает арминг при полном отсутствии сингала GPS.

Собственно, всё, можно сохранять. Вот полный дамп моих настроек:

Источник

Вкладка configuration

Здесь настроек много, чтобы было проще, разделю их по блокам.

Вкладка failsafe

В итоге из настроек я только активизировал «Failsafe Stage 2» и выбрал сценарий RTH в «Failsafe Procedure». Важно, чтобы в разделе «Channel Fallback Settings» для Throttle было установлено значение Hold, иначе ПК будет вырубать моторы.

iNAV Configurator, вкладка Failsafe

Вкладка led strip

Тут всё очень субъективно. Для своего квадрика я настроил подсветку синего цвета с эффектом Larson Scanner.

Подсветка с эффектом Larson Scanner

Вкладка modes

К этому моменту все датчики квадрокоптера должны быть включены и опознаны ПК, о чём информирует верхняя плашка с иконками.

В ранних версиях iNAV режимы удержания высоты и позиции не были самостоятельными и их надо было добавлять к ANGLE или HORIZON. Сейчас они самодостаточны, но, тем не менее, я всё же включу ANGLE и AIRMODE. Дело в том, что при первом полёте у меня не включился POSHOLD (как предположил Константин, была ошибка компаса) и я получил режим ACRO.

Переключателя режимов у меня два трёхпозиционных, но управляющих одним каналом (AUX1). Это даёт мне возможность настроить до пяти режимов или их комбинаций, чем я и воспользовался:

Также я повесил на тумблеры арминг (AUX2) и пищалку (AUX3), а Failsafe на «безтумблерный» AUX4.

iNAV Configurator, вкладка Modes

Вкладка ports

Минимум изменений: включил MSP для порта UART3 и GPS для UART2. Скорость для GPS выбрал 57600 (или 19200 при использовании softserial, но такое подключение не рекомендуется).

iNAV Configurator, вкладка Ports

Внешний компас – apm copter team

Случается, что поведение коптера на контроллере APM не всегда бывает хорошим. Это проявляется в режимах, использующих компас. Причиной является наводка от силовых проводов питания и моторов. Влияние можно исключить, если использовать внешний компас.

Использование внешнего компаса упрощает задачу расположения силовых проводов на борту коптера. Внешний компас может быть как отдельный, так и совмещен с модулем GPS. Большинство пилотов ставят совмещенную плату. Для GPS модуля это тоже плюс, т.к. при выносе его положение становится выше всех других компонентов коптера, что уменьшает помехи. О модулях GPS с компасом на плате писал ранее в статье «Использование модуля GPS». Как ориентировать внешний компас — написано в статье «Внешний компас. Как расположить». Далее останется только разобраться, как производится подключение к контроллеру APM.

Один из примеров установки внешнего компаса можно почитать в дневнике Александра Шанталова. Вот как получилось у него:

Пример установки внешнего компаса

Пример установки внешнего компаса

Аналогичное решение есть еще на буржуйском форуме:

Пример установки внешнего коспаса

Пример установки внешнего коспаса

Вот так получилось у Александра Киселева:

Стойка под внешний компас

Стойка под внешний компас

Теперь мы имеет представление, что должно получиться. Далее разберемся с подключением.

В подключении ничего сложного нет. Стоит только понять разницу между платой APM версии 2.5.2 и 2.6. На плате 2.5.2 компас обычно запаян, а на плате 2.6 микросхемы нет (но китайцы плату могут назвать как угодно, поэтому смотрим на наличие/отсутствие компаса).

Если у вас плата с запаянным компасом, то его необходимо отключить. Отключение производится перерезанием шейки между прямоугольными площадками. Если плата без запаянного компаса, то можно ничего не делать.

Здесь необходимо перерезать шейку

Здесь необходимо перерезать шейку

Производим подключение согласно схеме:

Схема подключения

Схема подключения

Нельзя, чтобы провода были слишком длинными, т.к. может наблюдаться проблема зависания шины I2C. Рекомендуется делать провод не больше 20см. Дальше крепим внешний компас (или совмещенную плату с модулем GPS) в удобном месте и ориентируем по осям как можно точнее! Про правильную ориентацию компаса написано в статье «Внешний компас. Как расположить». Проще всего его расположить также, как он расположен на плате APM 2.5.2 (см. ссылку выше).

Update 28.04.2022. Информация от Тимура.

Хотя модуль физически и один, сенсора там два.
Один сенсор — это определение координат. Это антенна спутникового модуля с чипом Ublox (или что там у вас стоит). По нему коптер знает где он находится (спутниковые координаты). Этот сенсор — как ни вращай — координаты будут определяться. Лучше или хуже (точнее или быстрее/медленнее) — но будет, хоть антенной вниз.
А вот в какую сторону лететь — это коптер будет знать при условии корректно работающего компаса, который часто расположен на том же модуле, даже запаян на одной плате. Но суть — отдельный сенсор, который чувствителен к правильной установке.
А вариантов разводки платы и размещения микросхемы компаса на ней — существует превеликое множество и ограничено только китайской фантазией. И однозначно утверждать как правильно ставить модуль можно только когда увидишь микросхему компаса на модуле.
Проверить без разборки просто. Вы же знаете, где у вас какая сторона света? Поставьте коптер мордой например на восток и включите коптер, соедините его с МП. В МП дожно показать именно на восток, а не на север. Стороны света могут «крутиться» благодаря показаниям акселерометра, но коптер при включении ВСЕГДА показывает на север, если у него не работает компас.

Если вы нашли ошибку на странице, то нажмите Shift Enter или нажмите здесь, чтобы уведомить нас.

Вопросы по inav

Тема раздела Коптеры. Комплектующие, сборка, настройка. в категории Квадрокоптеры и мультироторы; Еще вводная информация будет? Какой модуль напрмер.

Какими должны быть “правильные” значения компаса при калибровке phantom 3? – rc faq

Мы списались с тех поддержкой DJI, вот что они ответили:


Thanks for your request. 
Your below mentioned data are the ideal values, but the copter would also be able to fly in a bigger range, such as 1200 – 1400 or 1500 – 1700.
In case the value is out of range and not safe to fly, the device and app will give you a compass error after calibration. 

Thanks
Best Regards, Technical Support
DJI GmbH


Спасибо за Ваш запрос. 
Вы указали идеальные условия для полета коптера от 1400 до 1600
Коптер так же способен летать и при таких показаниях “Mod” компаса: от 1200 до 1400 или от 1500 до 1700. 
Если в Вашем случае диапазон отличается от вышеуказанных пределов, то летать не безопасно! 
При полёте может возникнуть ошибка компаса, даже после его калибровки…

Опции темы

Временно отключен, я на INAV не летал, но в BetaFlight привык всё проверить дома.. а как это сделать с GPS не представляю..

В inav без компаса и gps не будет файлсейва. А что вы собрались проверять дома?

Хотел проверить RXLOSS как и писал выше. Странно то что в настройках Failsafe присутствую и Drop и Landing, но они не работают. И то что на скинах выше я выкладывал это так же нормально?

Тоесть AUX каналы начиная с 6ого при потери сигнала устанавливаются кто на что горазд. а ведь у меня на них будет назначено многое.

Тоесть, если что-то случилось с GPS, например сразу после взлёта, проверяем RTH, а он не сработал, и к примеру RXLOSS, то всё коптер просто улетает в космос? Я правильно понял?

Хотел проверить RXLOSS как и писал выше. Странно то что в настройках Failsafe присутствую и Drop и Landing, но они не работают. И то что на скинах выше я выкладывал это так же нормально?

Тоесть AUX каналы начиная с 6ого при потери сигнала устанавливаются кто на что горазд. а ведь у меня на них будет назначено многое.

Тоесть, если что-то случилось с GPS, например сразу после взлёта, проверяем RTH, а он не сработал, и к примеру RXLOSS, то всё коптер просто улетает в космос? Я правильно понял?

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Navien периодически ошибка 03
  • Navien ошибка 17 форум