PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.5k stars 13.51k forks source link

S.BUS scanner: Do only execute if HW inverter is present #6762

Closed LorenzMeier closed 6 years ago

LorenzMeier commented 7 years ago

Due to the lack of a checksum on S.BUS it can be incorrectly detected. We need to disable the scanning for it if no HW support / inverter is present.

philippamlong commented 7 years ago

I have a frsky l9r connected to pixracer with sbus. In master, no rc input is detected. In latest stable, it works. Maybe this is the reason?

LorenzMeier commented 7 years ago

No, that must have a different reason. @davids5 Did we change the inverter control pin config?

davids5 commented 7 years ago

@LorenzMeier

Any RC changes are still out on a PR

That PR was vetted by @pkocmoud with FrSky X4R- SB using sBus.

How does the frsky l9r compare the the FrSky X4R- SB using sBus?

@philipoe can you try the above PR and see if it solves your issue?

philippamlong commented 7 years ago

I tried the PR, i did not work. Same behavior as in master. Also i tried self compiled master and travis master from qgroundcontrol.

What i did to reproduce:

Flash Master / PR 6777 Reset all params in qgroundcontrol reboot select airframe wing wing reboot radio -> calibrate error "Detected 0 radio channels. To operate PX4, you need at least 5 channels"

When i do the same steps with stable or beta branch (selfcompiled and travis tested), it works as it should, all channels are working.

My pixracer is from banggood (clone?)

pkocmoud commented 7 years ago

I can confirm that the sBus support in master is very intermittent. I can use the RC input thru calibrating the Radio portion of the Flight Controller bring up. After a reboot or IMU calibration routines the sBus receiver input stops working and seems to no longer be detected. I am only able to recover by running "mtd erase" and "param reset" and starting over. Loading beta or stable in master does not have this intermittent-icy. Not sure what to try next.

davids5 commented 7 years ago

@LorenzMeier

@pkocmoud did some regression testing and determined the root cause to be the fix for HIL (fmu reset not restarting the FMU if not running before command).

1) With the system booted with the radio connected it fails. 2) With the system booted and then the radio connected it works.

We then tested reverting these commits and it worked.

63857c6afcc719a060c986a20410e8670c1aa971 a716b105f545188b79a3e552f23cad864d1c1821 b8e72789cd561512e4d13f8a5168ec2e89e732fd

I suspect the recreation of the FMU is is not initializing the sbus scanning.

vinhk commented 7 years ago

I have similar issue after flashed masters using 'make px4fmu_v2_lpe. I got this error "Detected 0 radio channels. To operate PX4, you need at least 5 channels" when calibrate Radio in QGC.

davids5 commented 7 years ago

There are 2 problems with the same symptoms:

Please see

1) px4fmu-v4 build see https://github.com/PX4/Firmware/pull/6907

2) px4fmu-v2, px4fmu-v3 builds see https://github.com/PX4/Firmware/issues/6882#issuecomment-289615062

PX4BuildBot commented 6 years ago

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)