![]() |
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/actuators/dshot_erps.h"
Go to the source code of this file.
Variables | |
static const uint8_t | gcrNibble [16] |
IBM GCR encoding lookup table. | |
static const uint8_t | gcrNibbleInv [32] |
IBM GCR decoding lookup table. | |
calculate crc4
[in] | val |
Definition at line 111 of file dshot_erps.c.
References val.
Referenced by DshotErpsCheckCrc4(), and eperiodToPacked().
check packed validity
[in] | derpsp | pointer to the DshotErps object |
Definition at line 99 of file dshot_erps.c.
return eperiod from mantisse and exponent
[in] | derpsp | pointer to the DshotErps object |
Definition at line 72 of file dshot_erps.c.
References foo.
Referenced by DshotErpsGetRpm().
calculate and return rpm
[in] | derpsp | pointer to the DshotErps object |
Definition at line 87 of file dshot_erps.c.
References DshotErpsGetEperiod(), and foo.
initialise from GCR encoded frame
[in] | derpsp | pointer to the DshotErps object @api |
Definition at line 44 of file dshot_erps.c.
References DshotErps::ef, foo, frame, and frameToPacket().
initialise from rpm value
[in] | derpsp | pointer to the DshotErps object @api |
Definition at line 57 of file dshot_erps.c.
References foo, rpm, and setFromEperiod().
decode 20 bits GCR of grey value to eperiod
[in] | GCR(0,2) | encoded value received from ESC |
Definition at line 230 of file dshot_erps.c.
References frame, gcrDecode(), and greyDecode().
Referenced by frameToPacket().
encode eperiod to 20 bits GCR of grey value
[in] | eperiod | in microseconds |
Definition at line 218 of file dshot_erps.c.
References foo, gcrEncode(), and greyEncode().
Referenced by packetToFrame().
|
static |
encode packet from eperiod
[in] | eperiod | in microseconds |
Definition at line 124 of file dshot_erps.c.
References crc4(), foo, and p.
Referenced by setFromEperiod().
decode eperiod
[in,out] | derpsp | pointer to the DshotErps object |
Definition at line 254 of file dshot_erps.c.
References eperiodDecode(), and foo.
Referenced by DshotErpsSetFromFrame().
decode 20 bits GCR value to 16 bits natural
[in] | GCR(0,2) | encoded value |
Definition at line 194 of file dshot_erps.c.
References foo, and gcrNibbleInv.
Referenced by eperiodDecode().
encode 16 bit value to 20 bits GCR
[in] | binary | value |
Definition at line 175 of file dshot_erps.c.
References foo, and gcrNibble.
Referenced by eperiodEncode().
get natural binary value from grey binary
[in] | grey | encoded value |
Definition at line 163 of file dshot_erps.c.
References foo.
Referenced by eperiodDecode().
get grey binary value from natural binary
[in] | num | natural binary value |
Definition at line 146 of file dshot_erps.c.
References foo.
Referenced by eperiodEncode().
encode eperiod
[in,out] | derpsp | pointer to the DshotErps object |
Definition at line 266 of file dshot_erps.c.
References eperiodEncode(), and foo.
Referenced by setFromEperiod().
initialize from eperiod in microseconds
[in] | derpsp | pointer to the DshotErps object |
[in] | eperiod | in microseconds |
Definition at line 242 of file dshot_erps.c.
References eperiodToPacked(), foo, and packetToFrame().
Referenced by DshotErpsSetFromRpm().
IBM GCR encoding lookup table.
Definition at line 8 of file dshot_erps.c.
Referenced by gcrEncode().
IBM GCR decoding lookup table.
Definition at line 15 of file dshot_erps.c.
Referenced by gcrDecode().