1
1
/* ***************************************************************************
2
2
*
3
- * Copyright (c) 2019 PX4 Development Team. All rights reserved.
3
+ * Copyright (c) 2019-2020 PX4 Development Team. All rights reserved.
4
4
*
5
5
* Redistribution and use in source and binary forms, with or without
6
6
* modification, are permitted provided that the following conditions
@@ -48,7 +48,7 @@ struct wq_config_t {
48
48
49
49
namespace wq_configurations
50
50
{
51
- static constexpr wq_config_t rate_ctrl{ " wq:rate_ctrl " , 1664 , 0 }; // PX4 inner loop highest priority
51
+ // SCHED_PRIORITY_MAX left open
52
52
53
53
static constexpr wq_config_t SPI0{" wq:SPI0" , 2336 , -1 };
54
54
static constexpr wq_config_t SPI1{" wq:SPI1" , 2336 , -2 };
@@ -58,30 +58,33 @@ static constexpr wq_config_t SPI4{"wq:SPI4", 2336, -5};
58
58
static constexpr wq_config_t SPI5{" wq:SPI5" , 2336 , -6 };
59
59
static constexpr wq_config_t SPI6{" wq:SPI6" , 2336 , -7 };
60
60
61
- static constexpr wq_config_t I2C0{" wq:I2C0" , 1472 , -8 };
62
- static constexpr wq_config_t I2C1{" wq:I2C1" , 1472 , -9 };
63
- static constexpr wq_config_t I2C2{" wq:I2C2" , 1472 , -10 };
64
- static constexpr wq_config_t I2C3{" wq:I2C3" , 1472 , -11 };
65
- static constexpr wq_config_t I2C4{" wq:I2C4" , 1472 , -12 };
61
+ // PX4 inner loop highest priority after SPI (typically the primary IMU)
62
+ static constexpr wq_config_t rate_ctrl{" wq:rate_ctrl" , 1664 , -8 };
63
+
64
+ static constexpr wq_config_t I2C0{" wq:I2C0" , 1472 , -9 };
65
+ static constexpr wq_config_t I2C1{" wq:I2C1" , 1472 , -10 };
66
+ static constexpr wq_config_t I2C2{" wq:I2C2" , 1472 , -11 };
67
+ static constexpr wq_config_t I2C3{" wq:I2C3" , 1472 , -12 };
68
+ static constexpr wq_config_t I2C4{" wq:I2C4" , 1472 , -13 };
66
69
67
70
// PX4 att/pos controllers, highest priority after sensors.
68
- static constexpr wq_config_t attitude_ctrl{" wq:attitude_ctrl" , 1632 , -13 };
69
- static constexpr wq_config_t nav_and_controllers{" wq:nav_and_controllers" , 7200 , -14 };
70
-
71
- static constexpr wq_config_t hp_default{" wq:hp_default" , 1900 , -15 };
72
-
73
- static constexpr wq_config_t uavcan{" wq:uavcan" , 3000 , -16 };
74
-
75
- static constexpr wq_config_t UART0{" wq:UART0" , 1400 , -17 };
76
- static constexpr wq_config_t UART1{" wq:UART1" , 1400 , -18 };
77
- static constexpr wq_config_t UART2{" wq:UART2" , 1400 , -19 };
78
- static constexpr wq_config_t UART3{" wq:UART3" , 1400 , -20 };
79
- static constexpr wq_config_t UART4{" wq:UART4" , 1400 , -21 };
80
- static constexpr wq_config_t UART5{" wq:UART5" , 1400 , -22 };
81
- static constexpr wq_config_t UART6{" wq:UART6" , 1400 , -23 };
82
- static constexpr wq_config_t UART7{" wq:UART7" , 1400 , -24 };
83
- static constexpr wq_config_t UART8{" wq:UART8" , 1400 , -25 };
84
- static constexpr wq_config_t UART_UNKNOWN{" wq:UART_UNKNOWN" , 1400 , -26 };
71
+ static constexpr wq_config_t attitude_ctrl{" wq:attitude_ctrl" , 1632 , -14 };
72
+ static constexpr wq_config_t nav_and_controllers{" wq:nav_and_controllers" , 7200 , -15 };
73
+
74
+ static constexpr wq_config_t hp_default{" wq:hp_default" , 1900 , -16 };
75
+
76
+ static constexpr wq_config_t uavcan{" wq:uavcan" , 3000 , -17 };
77
+
78
+ static constexpr wq_config_t UART0{" wq:UART0" , 1400 , -18 };
79
+ static constexpr wq_config_t UART1{" wq:UART1" , 1400 , -19 };
80
+ static constexpr wq_config_t UART2{" wq:UART2" , 1400 , -20 };
81
+ static constexpr wq_config_t UART3{" wq:UART3" , 1400 , -21 };
82
+ static constexpr wq_config_t UART4{" wq:UART4" , 1400 , -22 };
83
+ static constexpr wq_config_t UART5{" wq:UART5" , 1400 , -23 };
84
+ static constexpr wq_config_t UART6{" wq:UART6" , 1400 , -24 };
85
+ static constexpr wq_config_t UART7{" wq:UART7" , 1400 , -25 };
86
+ static constexpr wq_config_t UART8{" wq:UART8" , 1400 , -26 };
87
+ static constexpr wq_config_t UART_UNKNOWN{" wq:UART_UNKNOWN" , 1400 , -27 };
85
88
86
89
static constexpr wq_config_t lp_default{" wq:lp_default" , 1700 , -50 };
87
90
0 commit comments