ArduPilot / ArduPilot/ardupilot

Support Taranis Smart Port sensors as data sources for pixhawk/ardupilot

Open
#6,296 13 comments 1 reaction 0 assignees View on GitHub
AllVehicles Enhancement Library
Dominant language
C++
Stars
15.9k
Forks
21.4k
Avg merge
3d 17h
Merged PRs (30d)
119

Description

While I personally care more about planes, this really would be useful to all vehicles. @magicrub this is what we discussed in person, just writing it down so it doesn't get lost.
Sadly, 18 months ago instead of filing a request I actually tried to do this myself, but while I had some success listening on an S-Port bus via this method
![image](https://cloud.githubusercontent.com/assets/1369412/26294122/6172f8cc-3e76-11e7-970a-46a78bbef7e4.png)
(except on the left I used a serial-USB converted and sent it to my laptop and on the right I had sensors on the bus).
I used 3 serial to USB converters and 2 of them at 57600bps never got the signal, while the 3rd one was tuned slightly differently and was able to get the data, but I never was able to generate a packet to interrogate a sensor so that it would return something. No data I sent apparently made it onto the bus despite my having the FUL-1 converter and the SPC, so I had to put an X8R on the bus and rely on it to interrogate the sensors and listen passively.
I then ran out of time and testing equipment to see why things weren't working so, I'm opening this so that others can have a look.

To remove confusion, https://github.com/athertop/MavLink_FrSkySPort/wiki
is great, but it's meant to send your ardupilot telemetry through a Taranis radio link and display it on your remote control.
For the same reason, this request is opposite from https://github.com/ArduPilot/ardupilot/issues/1587 which deals with converting mavlink data into a taranis S-Port stream and pass it through a taranis radio link to a taranis RC remote.

This request is totally different, it is to leverage some frsky sensors and use them as data sources for ardupilot. For 3 reasons:
1) some of that data could be used directly by ardupilot
2) some can be passed via mavlink to be displayed by an OSD and/or logged on the ground
3) this also allows using Taranis sensors on a non Taranis link (actually in my case I have a Taranis but I use LRS, so I can't use the sensors either).

The ones I'm thinking of are:
http://alofthobbies.com/frsky-sp-flvs-smart-port-lipo-voltage-sensor.html
![image](https://cloud.githubusercontent.com/assets/1369412/26274103/5b1ab798-3cf6-11e7-9be9-a8cb699eff22.png)
=> this is mostly useful for people who would like to monitor per cell voltage for batteries that are not balanced. This is relevant to https://github.com/ArduPilot/ardupilot/issues/6285

http://alofthobbies.com/frsky-sp-rpm-smart-port-rpm-and-dual-temperature-sensor.html
![image](https://cloud.githubusercontent.com/assets/1369412/26294033/cb0ad544-3e75-11e7-8770-5b9cb7b48012.png)
This one is much more useful in my opinion: this allows adding an RPM sensor to any existing motor and ESC. Even in my case I have a castle ESC with RPM signal out and never managed to get it work with the RPM sensor feature on AUX4/AUX5 that was added in ardupilot, but with this frsky sensor, I get RPM right away, no problems.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked MAVLink FrSkySPort wiki and the linked issue about converting MAVLink data into a Taranis S-Port stream, then compare them with this request's opposite direction. Investigate how the FLVS and RPM/dual-temperature sensors could provide data to ArduPilot. Done means supported Smart Port sensors can supply usable ArduPilot data, with the scope and vehicle coverage clarified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot, robotics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.