-
Notifications
You must be signed in to change notification settings - Fork 45
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
Support for 4 Byte Sensor Data - Baro Altitude etc #12
Comments
Hi jc9aj, More than happy to add support for this to the code. But I would need your support in testing it as I do not have an OpenTX tranceiver. I was only aware of the sensor types for internal and external voltage, temperature and RPM as those were the only one supported by my tranceiver. I suspect there are a lot more. Do you have a reference of other sensor types? It would make sense to implement all the ones that are predefined. Where did you get the information on the specs? regards |
Awesome! There is an official Flysky/Turnigy Sensor for Altitude which i own (TGY-CAT01) however I think its only supported by later FS-I6/I6X firmware. I'm hoping to grow to add GPS parameters in the future (I'm oving over to using a Jumper T16 which plays nicely with Flysky Receivers and Telemetry). I'm more than happy to help with testing, I've got a logic analyzer which is helpful for debugging Here are the links to the OpenTX and Cleanflight GitHubs which describe the extended sensor set (I think these are driven by flight controller telemetry outputs): https://github.com/opentx/opentx/blob/2.3/radio/src/telemetry/flysky_ibus.cpp#L52 |
Hi Jc9aj, I created a branch of the repository called "sensor32". See https://github.com/bmellink/IBusBM/tree/sensor32 The setSensorMeasurement(uint8_t adr, int32_t value) now takes an int32_t value (4 bytes). In your code you still need to do the bit shifting to create the 32 bits number to be passed as sensor value. |
thanks. I modified the (stupid) error in the if statement, merged the branch into master and created a new release (1.1.3) which should show up soon in the Arduino library manager. Thanks for helping out. I will leave this issue open for a few days in case you have any more issues/ additions. |
I'm in the process of designing a consolidated sensor module to work with the FS-iA6B receiver and an OpenTX transmitter. I've got it working great with a Current and External Voltage setup. Next stage is to hook up a BMP180/280/388 sensor for Baro Pressure and Temperature. The Cleanflight/Betaflight/OpenTx code supports it (Sensor Type 0x41) however there are a few changes required to your library to make it work:
I'm just wondering if you might make the changes necessary? I'm sure I can do it but it wont be as elegant as your code, and it might be a useful addition for others - especially if it includes the other Cleanflight/Betaflight sensors (GPS payloads etc)
Many Thanks
The text was updated successfully, but these errors were encountered: