David Sidrane
4aa7bff8c6
rc_input:Use inttypes
2021-06-16 17:07:47 +02:00
benjinne
9b7eae4043
rc: enable crsf and ghst telemetry on supported boards
...
Co-authored-by: Benjamin Linne <benjamin.linne.civ@mail.mil>
2021-04-07 08:51:49 +02:00
Daniel Agar
2d6deb4f1c
drivers/rc_input: don't accept RX_PAIR cmd when armed
2021-03-24 15:13:38 -04:00
Lorenz Meier
435ef38eda
RC Input: Reset lock state when switching to a new protocol
2021-03-24 15:13:38 -04:00
jciberlin
6f5efbeab5
ghst_telemetry: send battery status
...
Send battery status (ghst_telemetry). Apply factors to show correct values of volts, amps and mAh. Change ghost protocol code to follow more MISRA C++ guidelines.
2021-03-15 09:42:53 +01:00
Daniel Agar
6b1e7ffdb8
rc_input: fix possible string truncation (-Werror=stringop-truncation)
2021-02-26 17:56:14 -05:00
jciberlin
64342f568d
Ghost protocol
...
ghst: add ghost protocol
2021-02-20 11:29:57 +01:00
Daniel Agar
53a14e847d
drivers/rc_input: support RC_RSSI_PWM_CHAN
2021-01-26 18:19:52 -05:00
Lorenz Meier
a444d2610a
Spektrum passive power: Only use if present
2020-12-31 13:22:52 +01:00
Lorenz Meier
641cc33d79
RC input: Always report DSM state
2020-12-31 13:22:52 +01:00
Lorenz Meier
6529e1444f
RC input: Better monitoring
...
The output is now less confusing in terms of which protocol is currently active.
2020-12-31 13:22:52 +01:00
Lorenz Meier
8445a08bff
RC input: Acknowledge binding (or indicate that feature is not implemented)
2020-12-31 13:22:52 +01:00
FengShun
eac9a6b68b
Replace PublicationQueued with Publication to automatically configure ORB_QUEUE_LENGTH
2020-10-26 13:01:13 +01:00
Daniel Agar
ddce711acb
drivers/rc_input: command line bind use vehicle_command
2020-10-04 22:23:47 -04:00
Daniel Agar
63a23957b1
rc/dsm: decode improvements
...
- always check system field for validity
- reject any data outside of "servo position" valid range from Spektrum specification
- properly support XPlus channels (12+)
- debug message if channel count changes
2020-08-02 12:52:16 -04:00
rfu
8787780de4
some printf format and conversion fixes
2020-05-04 09:49:23 +02:00
SalimTerryLi
dc8e775d8f
ADC: replace ioctl with uorb message ( #14087 )
2020-03-20 11:23:32 +01:00
Daniel Agar
e3de7e62ea
drivers/rc_input: port to linux for testing
2020-01-09 16:16:23 -05:00
Daniel Agar
5f1121c216
rc_input: move to PX4 WQ
2020-01-08 13:00:59 -05:00
Daniel Agar
a475d71ca9
astyle shift module documentation to bottom of files
...
- Astyle chokes on the module description strings, so for now we can keep them near the bottom of each file.
2019-11-02 10:58:47 -04:00
Daniel Agar
4192414576
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
2019-10-28 10:50:31 -04:00
Daniel Agar
35398e05ca
perf counter cleanup (mostly intervals)
...
Some of these perf counters were useful during initial development, but realistically aren't needed anymore, some are redundant when we can now see the average interval from `work_queue status` and some of them simply aren't worth the cost at higher rates.
2019-10-21 18:54:17 -04:00
Daniel Agar
26364d44c9
px4_work_queue: command line status output and shutdown empty queues
...
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items
* WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
2019-10-02 12:23:17 -04:00
Daniel Agar
2989ce981c
rc_input: move to uORB::PublicationMulti<>
2019-09-30 18:41:23 -04:00
Beat Küng
b7a0e1ef03
boards: simplify RC port configuration by using NuttX ioctl's
...
A board only needs to define:
#define RC_SERIAL_PORT "/dev/ttyS4"
Then it can optionally define one or more of the following:
#define RC_SERIAL_SWAP_RXTX
#define RC_SERIAL_SINGLEWIRE
#define RC_INVERT_INPUT(_invert_true) px4_arch_gpiowrite(GPIO_SBUS_INV, _invert_true)
2019-07-16 08:09:22 +02:00
Daniel Agar
38da0f95aa
rc_input move to uORB::Subscription
2019-07-01 10:35:26 +02:00
Vasily Evseenko
f8c50f442f
Fix RSSI in on FMUv4 (pixracer)
2019-03-11 10:55:57 -07:00
Beat Küng
481bfc6308
px4_module: use px4_atomic_t
2019-01-30 10:24:06 -05:00
Daniel Agar
6660418c31
rc_input make RC_SCAN_STRING static constexpr
2018-07-30 10:32:56 -04:00
Daniel Agar
cdf828cbda
rc_input don't store cycle_timestamp
2018-07-30 10:32:56 -04:00
Daniel Agar
46254420be
rc_input add perf counters
2018-07-30 10:32:56 -04:00
Daniel Agar
658237f36a
px4fmu move RC input to new rc_input driver
2018-07-30 10:32:56 -04:00