1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-04 12:24:11 +01:00
LibrePilot/flight/Modules
Oleg Semyonov 0116e6a007 spektrum: rework DSM2/DSMJ/DSMX driver for explicit DSMX resolution support
- both CC serial ports are now disabled by default (no telemetry);
- serial ports now have DSM2, DSMX (10bit) and DSMX (11bit) options;
- ReceiverGroups now have DSM (MainPort) and DSM (FlexiPort) options.

For DSM2 protocol there is an explicit resolution bit in the stream, so
the DSM2 should be selected. For DSMX there is no such bit, and user
should choose the resolution from the list configuring the spektrum port.
ReceiverGroups have single DSM option which is handled by the same driver.

Downside: this implementation saves received frame first, unrolls by the
end of frame. This should be ok, but may be improved by unrolling channels
on the fly in the rx callback.

Another minor difference is that a ChannelGroup is now bound to port:
DSM (MainPort) or DSM (FlexiPort). This was considered as acceptable
solution in order to not have 6 DSM options for each ChannelGroup and
even more in case of new DSM protocol variations.

Known problem: it is not possible to choose same protocols like
DSM2/DSM2 for two ports. It can be enabled by adding an exception to
common rule, though.

The DSMX throttle channel misbehavior (zero value) is not treated
specially yet. It should trigger the failsafe being out of bounds.
More info and data dumps are required to handle this properly.
2011-10-30 19:29:03 +02:00
..
Actuator Fix for merging with the collective channel with the swashplate fix. 2011-09-11 18:53:10 -05:00
AHRSComms Initialize objects for guidance in the correct place. Init some objects in 2011-08-19 09:52:05 -05:00
Altitude Merge branch 'next' into camera_stabilization 2011-07-30 10:06:10 +09:00
Attitude Merge branch 'next' into camera_stabilization 2011-08-14 18:07:57 -05:00
Battery Merge branch 'next' into camera_stabilization 2011-07-30 10:06:10 +09:00
CameraStab Camera Stabilization: Bound outputs to [-1,1] although this should be redundant 2011-08-11 14:34:38 -05:00
Example OP-423: simplify the MODULE_INITCALL macro and remove the ordering loops 2011-07-12 20:44:32 -07:00
FirmwareIAP Merge branch 'next' into camera_stabilization 2011-07-30 10:06:10 +09:00
FlightPlan Initialize objects for guidance in the correct place. Init some objects in 2011-08-19 09:52:05 -05:00
GPS Modules/PS: typo fix 2011-08-25 15:13:50 +02:00
Guidance Posix: fix object initialization where necessary 2011-08-19 18:36:30 +02:00
ManualControl spektrum: rework DSM2/DSMJ/DSMX driver for explicit DSMX resolution support 2011-10-30 19:29:03 +02:00
MK/MKSerial OP-265 Flight reorganization of UAVObjects and Modules up a directory 2011-01-14 01:38:19 +00:00
Osd/OsdEtStd OP-174 ET OSD: barometric altitude works now, units must be set metric with E-Logger 2011-04-29 19:08:28 +03:00
Stabilization Stabilization fix typo 2011-09-12 11:56:01 -05:00
System PiOS.posix: fixed missing defines in pios_config. removed platform specific inclde from Systemmod (pios_config.h gets included from pios.h) 2011-10-19 22:28:39 +02:00
Telemetry Merge branch 'OP-536_CorvusCorax_ObjectOrientedFirmwareUAVTalk' into next 2011-08-19 12:10:40 +02:00