Skip to content
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

Spektrum rewrite #1799

Closed
wants to merge 4 commits into from
Closed

Spektrum rewrite #1799

wants to merge 4 commits into from

Conversation

fvantienen
Copy link
Member

@fvantienen fvantienen commented Jul 14, 2016

This is a total rewrite of the Spektrum satellite parser, which also include support for DSMX!
Protocol information is available at http://www.spektrumrc.com/ProdInfo/Files/Remote%20Receiver%20Interfacing%20Rev%20A.pdf

Things that need to be done before merging:

  • Add more satellites to xml makefile section of module
  • Fix UART ports in all board files
  • No guessing of TX type when RX sends type
  • Enable settings for binding pulses and bind at boot (or live when power can be reset or RX)
  • Binding at boot function
  • Fix sim/NPS RC
  • Test with different RX/TX.

@fvantienen fvantienen added Refactoring Enhancement Improve upon exiting functionality labels Jul 14, 2016
@@ -109,7 +109,7 @@ let write_settings = fun xml_file out_set telemetry_xml ->
fprintf out_set "<!-- This file has been generated by gen_periodic from %s -->\n" xml_file;
fprintf out_set "<!-- Version %s -->\n" (Env.get_paparazzi_version ());
fprintf out_set "<!-- Please DO NOT EDIT -->\n\n";
fprintf out_set "<settings>\n";
fprintf out_set "<settings target=\"ap|nps\">\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this about?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the general comment ;) this is btw true, since there is no telemetry in fbw.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not quite, fixedwing fbw has telemetry, also other targets like tests and maybe some loggers do...

@flixr
Copy link
Member

flixr commented Jul 14, 2016

How are the fbw and intermcu_init changes related to the new spektrum parser?

@fvantienen
Copy link
Member Author

fvantienen commented Jul 14, 2016

Yeah those should be removed here.. but I tested this in a FBW+AP setup. And wanted to try to get settings to work in the FBW(because there this module runs). But this caused other problems with the GCS part not able to set the FBW settings(which I wanted to set through intermcu).

So all that changes can be removed and are non important for this PR. But I just rebased this branch to master and didn't spend time removing these parts yet.

@podhrmic
Copy link
Member

podhrmic commented May 7, 2017

@fvantienen any updates here? Can you fix the merge conflicts?

@OpenUAS
Copy link
Contributor

OpenUAS commented Aug 3, 2017

Would like to see this great and warm welcomed improvement merge a reality so:

This I can fix:

  • Add more satellites to xml makefile section of module
  • Fix UART ports in all board files

Maybe @kevindehecker can help since he was busy with spektrum bind code a lot for Pixhawk so these:

  • nable settings for binding pulses and bind at boot (or live when power can be reset or RX)
  • Binding at boot function

Maybe @flixr this one?

  • Fix sim/NPS RC

and maybe you cold add this yourself?

  • No guessing of TX type when RX sends type

Then we can:

  • Test with different RX/TX.,
    We have quite some different DSM2 and X TX's at hand

@OpenUAS
Copy link
Contributor

OpenUAS commented Mar 28, 2018

As @fvantienen will be available again as of ~20180629 well go through this one

@OpenUAS
Copy link
Contributor

OpenUAS commented Mar 28, 2018

Since @fvantienen will be available again as of ~20180629 we will be validating this one again together.

gautierhattenberger added a commit that referenced this pull request Apr 10, 2018
This is based on #1799 and replace it.
Now, the normal UART driver is used instead of the specific code. It
makes it possible to use on only arch, including ChibiOS.
Binding is also possible, but for boards using ChibiOS and SD logger, it
is recommanded to disable it for the binding process as the LSE clock
required by the RTC is longer to start (bind pulses should be issued
before 200ms after power up).
The configuration is backward compatible and some defines in the boards'
header could be even removed. Only Apogee, Chimera and Elle0 have been
updated as it is the only board tested for now. There is no harm to keep
the old defines.
@fvantienen
Copy link
Member Author

fvantienen commented Apr 11, 2018

In favor of #2250 I close this pull request.

@fvantienen fvantienen closed this Apr 11, 2018
gautierhattenberger added a commit that referenced this pull request Apr 28, 2018
This is based on #1799 and replace it.
Now, the normal UART driver is used instead of the specific code. It
makes it possible to use on only arch, including ChibiOS.
Binding is also possible, but for boards using ChibiOS and SD logger, it
is recommended to disable it for the binding process as the LSE clock
required by the RTC is longer to start (bind pulses should be issued
before 200ms after power up).
The configuration is backward compatible and some defines in the boards'
header could be even removed. Only Apogee, Chimera and Elle0 have been
updated as it is the only board tested for now. There is no harm to keep
the old defines.
biancabndris pushed a commit to biancabndris/paparazzi that referenced this pull request Aug 29, 2018
This is based on paparazzi#1799 and replace it.
Now, the normal UART driver is used instead of the specific code. It
makes it possible to use on only arch, including ChibiOS.
Binding is also possible, but for boards using ChibiOS and SD logger, it
is recommended to disable it for the binding process as the LSE clock
required by the RTC is longer to start (bind pulses should be issued
before 200ms after power up).
The configuration is backward compatible and some defines in the boards'
header could be even removed. Only Apogee, Chimera and Elle0 have been
updated as it is the only board tested for now. There is no harm to keep
the old defines.
@gautierhattenberger gautierhattenberger deleted the spektrum_rewrite branch September 14, 2018 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improve upon exiting functionality Refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants