ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

APM RSSI 3.3V input (feature request)

Open branob opened this issue 13 years ago • 18 comments

The current RSSI_PIN expects RSSI signal from 0V to 5V. The new FrSky X8R receiver has RSSI output signal with 0V to 3.3V levels.

It would be nice if the RSSI_PIN had option to re-scale (software re-scaling) the input level to 0-5 to get accurate readings. something like if (RSSI_RANGE is 3.3) then RSSI = RSSI * 5 / 3.3;

This should require one additional RSSI_RANGE parameter and one or two simple lines of code.

As of now, the RSSI_PIN works with X8R receiver but when at MAX it obviously shows only 66% signal strenght.

branob avatar Nov 02 '13 02:11 branob

Not only does this apply to FrSky users, but also LRS radios such as the RangeLink which outputs RSSI between 0 - 3V (not 3.3V). A Range parameter like this one would be more than welcome, as I now need to calibrate the MinimOSD RSSI display range, but nevertheless the 'raw' values as interpreted by the APM are still expected to be in the 0-5V range and therefore the ground station displays them incorrectly.

I'd vote for this change because it re-scales the MAVlink RSSI value system wide and therefore no display scaling is needed.

j0bro avatar Nov 18 '13 09:11 j0bro

I vote for this too, i use frsky equipment and it will be a major help if we can reconfigure the scaling factor for analogue voltage input..

hpcre avatar Nov 30 '13 23:11 hpcre

This has been already implemented http://diydrones.com/profiles/blogs/apm-rssi-3-3v-input https://github.com/diydrones/ardupilot/issues/688

branob avatar Nov 30 '13 23:11 branob

No, i don't believe it has been merged into master. reopening.

rmackay9 avatar Dec 01 '13 02:12 rmackay9

Just got my D8R-II set up with RSSI out and CPPM. Hooked RSSI up to the APM on A1, but shows only 60% RSSI. It will be really good to get the RSSI range merged into the Arduplane release :)

adamkerrnz avatar Dec 09 '13 08:12 adamkerrnz

This has been merged into master now. For APM2 it will go out with AC3.2 For Pixhawk it's out with AC3.1.1-rc2.

rmackay9 avatar Jan 22 '14 04:01 rmackay9

i compiled master (3.1.1-dev) just before you released 3.1.1-rc1 and used RSSI successfully. what's the reason for postponing its release till 3.2 on APM ? Or have i misunderstood ?

hpcre avatar Jan 23 '14 15:01 hpcre

hpcre, It went into master after we branched for AC3.1.1. So if we rebased on master (in order to include this change) then we would need to re-do all the testing. You're right that master may be fine but still, re-doing all that testing and support would be tough.

rmackay9 avatar Jan 24 '14 03:01 rmackay9

Can't wait ....

SnappyDIY avatar Jan 25 '14 12:01 SnappyDIY

Randy, thanks for the follow up.

hpcre avatar Jan 27 '14 13:01 hpcre

Upgrade to the latest mission planner(3.1.2), cannot find the new RSSI_RANGE param in the full param list...

zhutopian avatar Mar 17 '14 05:03 zhutopian

forest, As mentioned above, it'll go out with AC3.2.

rmackay9 avatar Mar 17 '14 06:03 rmackay9

Ah this explains the weird readings with MinimOSDExtra. Thanks Randy, can't wait for this one!

TimGFoley avatar Apr 07 '14 21:04 TimGFoley

I understand you can now connect the frsky x8r RSSI to the Pixhawk Sbus, although I can't find enough information on how to make this work. Does anyone know?

gbstar avatar Feb 07 '15 09:02 gbstar

Without any modifications connect the RSSI port of the X8R to the SBUS of the Pixhawk. Don't get confused with the SBUS of the X8R, we're talking about two servo cables now connecting the receiver and Pixhawk as below:

Receiver <-> Pixhawk SBUS -- RC RSSI -- SBUS

If you are using MinimOSD you will only get RSSI passed through on the first telemetry port, so would have to move any radio/downlink to the second telemetry port.

However the future path is to just use an SmartPort (the third interface port besides servos on the X8R) and directly exchange MavLink messages with Pixhawk.

This is my current favourite: https://github.com/wolkstein/MavLink_FrSkySPort

But the future path integrated with Pixhawk is here: https://github.com/diydrones/ardupilot/issues/1587#issuecomment-72365015

Also you need to set the Pixhawk parameters RSSI_PIN to 103 and RSSI_RANGE to 3.3 (volt).

CodeChief avatar Feb 07 '15 10:02 CodeChief

WOW, that was quick and very helpful. I did as you described and changed the settings in pixhawk using mission planner. But I can't see the RSSI information on the planner screen, there is no reference to it? Is there something I am not setting up? I connected the RSSI out on the x8r to the sbus on the pixhawk using a servo lead?

gbstar avatar Feb 07 '15 15:02 gbstar

To view the value right-click the "Quick" (status) in the "Info View" window of APM Planner 2.0, select "Add/Remove Items" then select "RC_CHANNELS" -> "rssi (unit8_t)". You should see a value up to 255 meaning 100%.

To connect it, yes just take another servo cable between the two. I am about to build a Teensy full FrSky telemetry adapter and hope with the Smart Port connected I will get RSSI via that, else I'll end-up with three cables between the receiver and Pixhawk.

CodeChief avatar Feb 07 '15 17:02 CodeChief

Thank you very much. I could see the RSSi in the action panel didn't know how to make it show up on the main screen, thanks to you I now can see it lol. It's always good to get help from someone woo knows what they are doing.

Next I am going to use the x8r's s-port to attach a board to pixhawk, to get the telemetry to my taranis. I know there are a couple of options, one being a Teensy 3.1 or maybe this one http://copter.ardupilot.com/wiki/common-frsky-telemetry/.

gbstar avatar Feb 08 '15 17:02 gbstar