format
This commit is contained in:
parent
45b74bf0b6
commit
f51174400d
4
src/mw.c
4
src/mw.c
|
@ -122,8 +122,8 @@ void annexCode(void)
|
||||||
|
|
||||||
tmp2 = tmp / 100;
|
tmp2 = tmp / 100;
|
||||||
rcCommand[axis] = lookupPitchRollRC[tmp2] + (tmp - tmp2 * 100) * (lookupPitchRollRC[tmp2 + 1] - lookupPitchRollRC[tmp2]) / 100;
|
rcCommand[axis] = lookupPitchRollRC[tmp2] + (tmp - tmp2 * 100) * (lookupPitchRollRC[tmp2 + 1] - lookupPitchRollRC[tmp2]) / 100;
|
||||||
prop1 = 100 - (uint16_t) cfg.rollPitchRate * tmp / 500;
|
prop1 = 100 - (uint16_t)cfg.rollPitchRate * tmp / 500;
|
||||||
prop1 = (uint16_t) prop1 *prop2 / 100;
|
prop1 = (uint16_t)prop1 * prop2 / 100;
|
||||||
} else { // YAW
|
} else { // YAW
|
||||||
if (cfg.yawdeadband) {
|
if (cfg.yawdeadband) {
|
||||||
if (tmp > cfg.yawdeadband) {
|
if (tmp > cfg.yawdeadband) {
|
||||||
|
|
|
@ -45,7 +45,7 @@ static void spektrumDataReceive(uint16_t c)
|
||||||
{
|
{
|
||||||
uint32_t spekTime;
|
uint32_t spekTime;
|
||||||
static uint32_t spekTimeLast, spekTimeInterval;
|
static uint32_t spekTimeLast, spekTimeInterval;
|
||||||
static uint8_t spekFramePosition;
|
static uint8_t spekFramePosition;
|
||||||
|
|
||||||
spekDataIncoming = true;
|
spekDataIncoming = true;
|
||||||
spekTime = micros();
|
spekTime = micros();
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
** File : stm32_flash.ld
|
** File : stm32_flash.ld
|
||||||
**
|
**
|
||||||
** Abstract : Linker script for STM32F103C8 Device with
|
** Abstract : Linker script for STM32F103C8 Device with
|
||||||
** 64KByte FLASH, 20KByte RAM
|
** 128KByte FLASH, 20KByte RAM
|
||||||
**
|
**
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
*/
|
*/
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
/* Highest address of the user mode stack */
|
/* Highest address of the user mode stack */
|
||||||
_estack = 0x20005000; /* end of 10K RAM */
|
_estack = 0x20005000; /* end of 20K RAM */
|
||||||
|
|
||||||
/* Generate a link error if heap and stack don't fit into RAM */
|
/* Generate a link error if heap and stack don't fit into RAM */
|
||||||
_Min_Heap_Size = 0; /* required amount of heap */
|
_Min_Heap_Size = 0; /* required amount of heap */
|
||||||
|
|
Loading…
Reference in New Issue