# pxrc - PhoenixRC Flight Controller Adapter

_Peios Kernel / Hardware and drivers / Input / devices_

> This driver let you use your own RC controller plugged into the adapter that comes with PhoenixRC or other compatible adapters.

<a id="rst-pxrc-phoenixrc-flight-controller-adapter"></a>

**Author:** Marcus Folkesson &lt;[marcus.folkesson@gmail.com](<mailto:marcus.folkesson@gmail.com>)&gt;

This driver let you use your own RC controller plugged into the adapter that comes with PhoenixRC or other compatible adapters.

The adapter supports 7 analog channels and 1 digital input switch.

<a id="rst-notes"></a>

## Notes

Many RC controllers is able to configure which stick goes to which channel. This is also configurable in most simulators, so a matching is not necessary.

The driver is generating the following input event for analog channels:


<table>
<thead>
<tr>
<th>


Channel

</th>
<th>


Event

</th>
</tr>
</thead>
<tbody>
<tr>
<td>


1

</td>
<td>


ABS_X

</td>
</tr>
<tr>
<td>


2

</td>
<td>


ABS_Y

</td>
</tr>
<tr>
<td>


3

</td>
<td>


ABS_RX

</td>
</tr>
<tr>
<td>


4

</td>
<td>


ABS_RY

</td>
</tr>
<tr>
<td>


5

</td>
<td>


ABS_RUDDER

</td>
</tr>
<tr>
<td>


6

</td>
<td>


ABS_THROTTLE

</td>
</tr>
<tr>
<td>


7

</td>
<td>


ABS_MISC

</td>
</tr>
</tbody>
</table>

The digital input switch is generated as an `BTN_A` event.

<a id="rst-manual-testing"></a>

## Manual Testing

To test this driver's functionality you may use `input-event` which is part of the `input layer utilities` suite <a id="rst-footnote-reference-1"></a>[1](#rst-footnote-1).

For example:



```text
> modprobe pxrc
> input-events <devnr>
```

To print all input events from input `devnr`.

<a id="rst-references"></a>

## References

<a id="rst-footnote-1"></a>



**[1]** [https://www.kraxel.org/cgit/input/](<https://www.kraxel.org/cgit/input/>)
