diff --git a/flight/Modules/Telemetry/telemetry.c b/flight/Modules/Telemetry/telemetry.c index 4c1443cb7..ad2d254d8 100644 --- a/flight/Modules/Telemetry/telemetry.c +++ b/flight/Modules/Telemetry/telemetry.c @@ -36,8 +36,8 @@ #include "telemetrysettings.h" // Private constants -#define MAX_QUEUE_SIZE 20 -#define STACK_SIZE_BYTES 624 +#define MAX_QUEUE_SIZE TELEM_QUEUE_SIZE /*20*/ +#define STACK_SIZE_BYTES TELEM_STACK_SIZE /*624*/ #define TASK_PRIORITY_RX (tskIDLE_PRIORITY + 2) #define TASK_PRIORITY_TX (tskIDLE_PRIORITY + 2) #define TASK_PRIORITY_TXPRI (tskIDLE_PRIORITY + 2) diff --git a/flight/PiOS/Boards/STM32103CB_CC_Rev1.h b/flight/PiOS/Boards/STM32103CB_CC_Rev1.h index d3cc923e0..d9321f99a 100644 --- a/flight/PiOS/Boards/STM32103CB_CC_Rev1.h +++ b/flight/PiOS/Boards/STM32103CB_CC_Rev1.h @@ -92,6 +92,12 @@ TIM4 | RC In 1 | Servo 3 | Servo 2 | Servo 1 #define PIOS_WDG_ATTITUDE 0x0004 #define PIOS_WDG_MANUAL 0x0008 +//------------------------ +// TELEMETRY +//------------------------ +#define TELEM_QUEUE_SIZE 5 +#define TELEM_STACK_SIZE 450 + //------------------------ // PIOS_LED //------------------------ diff --git a/flight/PiOS/Boards/STM3210E_OP.h b/flight/PiOS/Boards/STM3210E_OP.h index caabd3ec6..1975b34de 100644 --- a/flight/PiOS/Boards/STM3210E_OP.h +++ b/flight/PiOS/Boards/STM3210E_OP.h @@ -101,6 +101,12 @@ TIM8 | Servo 5 | Servo 6 | Servo 7 | Servo 8 #define PIOS_WDG_AHRS 0x0004 #define PIOS_WDG_MANUAL 0x0008 +//------------------------ +// TELEMETRY +//------------------------ +#define TELEM_QUEUE_SIZE 20 +#define TELEM_STACK_SIZE 624 + //------------------------ // PIOS_LED //------------------------ diff --git a/flight/Project/OpenPilotOSX/OpenPilotOSX.xcodeproj/project.pbxproj b/flight/Project/OpenPilotOSX/OpenPilotOSX.xcodeproj/project.pbxproj index 99df865a3..45d994bad 100644 --- a/flight/Project/OpenPilotOSX/OpenPilotOSX.xcodeproj/project.pbxproj +++ b/flight/Project/OpenPilotOSX/OpenPilotOSX.xcodeproj/project.pbxproj @@ -2678,10 +2678,10 @@ 65C35EA612F0A834004811C2 /* uavobjecttemplate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = uavobjecttemplate.h; sourceTree = ""; }; 65C35EA712F0A834004811C2 /* utlist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = utlist.h; sourceTree = ""; }; 65C35EA812F0A834004811C2 /* eventdispatcher.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = eventdispatcher.c; sourceTree = ""; }; + 65C35F6612F0DC2D004811C2 /* attitude.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = attitude.c; sourceTree = ""; }; + 65C35F6812F0DC2D004811C2 /* attitude.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = attitude.h; sourceTree = ""; }; 65D2CA841248F9A400B1E7D6 /* mixersettings.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = mixersettings.xml; sourceTree = ""; }; 65D2CA851248F9A400B1E7D6 /* mixerstatus.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = mixerstatus.xml; sourceTree = ""; }; - 65E6DF6812E02BA300058553 /* ccattitude.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ccattitude.c; sourceTree = ""; }; - 65E6DF6A12E02BA300058553 /* ccattitude.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ccattitude.h; sourceTree = ""; }; 65E6DF7112E02E8E00058553 /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = ""; }; 65E6DF7312E02E8E00058553 /* alarms.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = alarms.c; sourceTree = ""; }; 65E6DF7412E02E8E00058553 /* coptercontrol.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = coptercontrol.c; sourceTree = ""; }; @@ -3143,9 +3143,8 @@ 650D8E2012DFE16400D05CC9 /* Actuator */, 650D8E2412DFE16400D05CC9 /* AHRSComms */, 650D8E2812DFE16400D05CC9 /* Altitude */, - 650D8E2C12DFE16400D05CC9 /* Attitude */, + 65C35F6512F0DC2D004811C2 /* Attitude */, 650D8E2E12DFE16400D05CC9 /* Battery */, - 65E6DF6712E02BA300058553 /* CCAttitude */, 650D8E3212DFE16400D05CC9 /* Example */, 650D8E3B12DFE16400D05CC9 /* FirmwareIAP */, 650D8E3F12DFE16400D05CC9 /* FlightPlan */, @@ -3213,21 +3212,6 @@ path = inc; sourceTree = ""; }; - 650D8E2C12DFE16400D05CC9 /* Attitude */ = { - isa = PBXGroup; - children = ( - 650D8E2D12DFE16400D05CC9 /* inc */, - ); - path = Attitude; - sourceTree = ""; - }; - 650D8E2D12DFE16400D05CC9 /* inc */ = { - isa = PBXGroup; - children = ( - ); - path = inc; - sourceTree = ""; - }; 650D8E2E12DFE16400D05CC9 /* Battery */ = { isa = PBXGroup; children = ( @@ -7431,19 +7415,19 @@ path = inc; sourceTree = ""; }; - 65E6DF6712E02BA300058553 /* CCAttitude */ = { + 65C35F6512F0DC2D004811C2 /* Attitude */ = { isa = PBXGroup; children = ( - 65E6DF6812E02BA300058553 /* ccattitude.c */, - 65E6DF6912E02BA300058553 /* inc */, + 65C35F6612F0DC2D004811C2 /* attitude.c */, + 65C35F6712F0DC2D004811C2 /* inc */, ); - path = CCAttitude; + path = Attitude; sourceTree = ""; }; - 65E6DF6912E02BA300058553 /* inc */ = { + 65C35F6712F0DC2D004811C2 /* inc */ = { isa = PBXGroup; children = ( - 65E6DF6A12E02BA300058553 /* ccattitude.h */, + 65C35F6812F0DC2D004811C2 /* attitude.h */, ); path = inc; sourceTree = "";