Sbus inverter option
« on: May 07, 2017, 10:22:14 pm »
I assume that LP inverts the sbus signal as it comes into the fc like other firmwares... my question is there a way to turn off the sbus inverter such as in betaflight for use of receivers that output uninverted sbus signal?

maybe is the systems tab somewhere? I couldn't find it but might not be implemented into the code I guess.

Thanks : )

Re: Sbus inverter option
« Reply #1 on: May 08, 2017, 01:27:27 am »
The inverter is programmable (on/off) because it must be off for other protocols.

There isn't an option to do this in the setup.  It is a fairly simple code change.

You have a receiver that puts out inverted (non-inverted from uart standpoint) SBus?

Re: Sbus inverter option
« Reply #2 on: May 08, 2017, 04:24:59 am »
I figured it would have to be a slight code change as i hadn't heard of this before betaflight... I wouldn't know where to begin there really haha my programmong skills are very limited.

the rx is the FuriouFPV LR1000. outputs non-inverted sbus. rx binds well to my tx and provides telemetry, but I don't get any rc activity in the input tab. I got the rssi activity to show up in the gcs at some point on some other protocol (i tried them all for kicks, i think it was dsm)

http://furiousfpv.com/product_info.php?cPath=29&products_id=426

The inverter is programmable (on/off) because it must be off for other protocols.

There isn't an option to do this in the setup.  It is a fairly simple code change.

You have a receiver that puts out inverted (non-inverted from uart standpoint) SBus?

Re: Sbus inverter option
« Reply #3 on: May 08, 2017, 07:22:11 am »
If you are building your own firmware...

For example for Revo: in flight/targets/boards/revolution/firmware/pios_board.c

It might be (I have not verified it) as simple as changing this around line 865:
    if (hwsettings_mainport != HWSETTINGS_RM_MAINPORT_SBUS) {
        GPIO_Init(pios_sbus_cfg.inv.gpio, &pios_sbus_cfg.inv.init);
        GPIO_WriteBit(pios_sbus_cfg.inv.gpio, pios_sbus_cfg.inv.init.GPIO_Pin, pios_sbus_cfg.gpio_inv_disable);
    }

to this:
//    if (hwsettings_mainport != HWSETTINGS_RM_MAINPORT_SBUS) {
        GPIO_Init(pios_sbus_cfg.inv.gpio, &pios_sbus_cfg.inv.init);
        GPIO_WriteBit(pios_sbus_cfg.inv.gpio, pios_sbus_cfg.inv.init.GPIO_Pin, pios_sbus_cfg.gpio_inv_disable);
//    }

to make a version of firmware that turns off the Sbus inverter.

Re: Sbus inverter option
« Reply #4 on: May 08, 2017, 08:29:20 am »
thank you, found it in the firmware and will look into learning how to modify/compile a custom firmware to try it out.

just following the CONTRIBUTING.md right now... is that the right place to start haha?  first custom firmware build here.

Re: Sbus inverter option
« Reply #5 on: May 08, 2017, 08:58:53 am »
The wiki has instructions on how to set up and build everything.

Re: Sbus inverter option
« Reply #6 on: May 08, 2017, 05:04:41 pm »
Perfect, I will give it a shot. Thank you for the help!

Re: Sbus inverter option
« Reply #7 on: May 08, 2017, 05:40:31 pm »
Would the code modification you posted earlier be the same for cc/cc3d? Might try on one of my many there as to not muck with my revo.

I can find the appropriate code, just not sure if it has a different coding than the revo.

Brian

  • *
  • 119
Re: Sbus inverter option
« Reply #8 on: May 08, 2017, 06:42:59 pm »
This seems to be becoming more popular.  I also have a receiver that (supposedly) outputs non-inverted sbus, although I looked at it on a scope and it sure looks inverted to me.  I haven't tried hooking it up to an FC yet, but plan to tonight.  I also have a configurable inverter on it, so I can try inverted or not.

In any case, we probably should add an option for non-inverted sbus to the standard firmware/GUI.

f5soh

  • *****
  • 4572
    • LibrePilot
Re: Sbus inverter option
« Reply #9 on: May 08, 2017, 07:52:42 pm »
Quote
In any case, we probably should add an option for non-inverted sbus to the standard firmware/GUI.

Just need this pull request merged:
https://bitbucket.org/librepilot/librepilot/pull-requests/418/lp-480-pios-board-com-port-setup/diff#Lshared/uavobjectdefinition/hwsettings.xmlT37

Re: Sbus inverter option
« Reply #10 on: May 08, 2017, 08:04:02 pm »
I don't know why manufactures would start switching it up... but I was just intrigued by the LR1000's long range, small size, and dualway telemetry. Just can't get it to work.

What rx do you have?


This seems to be becoming more popular.  I also have a receiver that (supposedly) outputs non-inverted sbus, although I looked at it on a scope and it sure looks inverted to me.  I haven't tried hooking it up to an FC yet, but plan to tonight.  I also have a configurable inverter on it, so I can try inverted or not.

In any case, we probably should add an option for non-inverted sbus to the standard firmware/GUI.

Brian

  • *
  • 119
Re: Sbus inverter option
« Reply #11 on: May 08, 2017, 08:36:46 pm »

Re: Sbus inverter option
« Reply #12 on: May 08, 2017, 10:14:30 pm »
Let me know if you get it hooked up and working with no firmware change.

I also tried an sbus > ppm converter on mine to no avail.

Brian

  • *
  • 119
Re: Sbus inverter option
« Reply #13 on: May 09, 2017, 05:01:09 am »
My receive is working perfectly with no inversion on the Revo main port configure as S.bus.  The only problem I had was with the input configuration wizard.  RSSI is output on channel 9, and that was confusing the wizard, but I was able to configure the channels perfectly using the manual process, which I prefer anyways.

I don't know why they say that the s.bus on mine is not inverted because it clearly is.

Re: Sbus inverter option
« Reply #14 on: May 09, 2017, 05:38:25 am »
Interesting. yeah when I setup another rx with rssi telemetry on a channel like that I also have to use manual setup or the wizard thinks its a different channel.

i picked up my first FC that is not a CC/CC3d/Revo to test mine on betaflight bc maybe my rx is just shot.. Ill test it on that in a few days when it gets here