Compare commits

..
2 Commits
Author SHA1 Message Date
aZholtikov fd5bcf2290 wip: 2026-11-03 10:01:27 +03:00
aZholtikov e9fb27ca88 wip: 2026-11-03 09:32:19 +03:00
4 changed files with 482 additions and 426 deletions

No files matched your search

+1 -1
View File
@@ -1 +1 @@
idf_component_register(SRCS "ate0005.c" INCLUDE_DIRS "" REQUIRES zh_160x_i2c zh_encoder zh_inclinometer zh_tachometer zh_espnow zh_ota_server zh_syslog esp_wifi nvs_flash esp_timer esp_app_format)
idf_component_register(SRCS "ate0005.c" INCLUDE_DIRS "" REQUIRES zh_160x_i2c zh_encoder zh_inclinometer zh_tachometer zh_espnow zh_ota_server zh_syslog zh_menu esp_wifi nvs_flash esp_timer esp_app_format)
+446 -395
View File
File diff suppressed because it is too large. Load diff
+29 -26
View File
@@ -27,33 +27,36 @@
#include "zh_ota_server.h"
#include "zh_espnow.h"
#include "zh_syslog.h"
#include "zh_menu.h"
#define STATS_TASK_PRIORITY tskIDLE_PRIORITY /*!< Priority of the statistics logging task. */
#define STATS_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 1280 /*!< Stack size for the statistics logging task. */
#define A_INCLINOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the A inclinometer processing task. */
#define A_INCLINOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the A inclinometer processing task. */
#define B_INCLINOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the B inclinometer processing task. */
#define B_INCLINOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the B inclinometer processing task. */
#define A_TACHOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the A tachometer processing task. */
#define A_TACHOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the A tachometer processing task. */
#define B_TACHOMETER_TASK_PRIORITY tskIDLE_PRIORITY + 5 /*!< Priority of the B tachometer processing task. */
#define B_TACHOMETER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE + 512 /*!< Stack size for the B tachometer processing task. */
#define ENCODER_TASK_PRIORITY tskIDLE_PRIORITY + 4 /*!< Priority of the mode encoder task. */
#define ENCODER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE /*!< Stack size for the mode encoder task. */
#define EXPANDER_TASK_PRIORITY tskIDLE_PRIORITY + 4 /*!< Priority of the PCF8574 expander task. */
#define EXPANDER_TASK_STACK_SIZE configMINIMAL_STACK_SIZE /*!< Stack size for the PCF8574 expander task. */
#define STATS_TASK_PRIORITY (tskIDLE_PRIORITY) /*!< Priority of the statistics logging task. */
#define STATS_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 1280) /*!< Stack size for the statistics logging task. */
#define A_INCLINOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the A inclinometer processing task. */
#define A_INCLINOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the A inclinometer processing task. */
#define B_INCLINOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the B inclinometer processing task. */
#define B_INCLINOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the B inclinometer processing task. */
#define A_TACHOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the A tachometer processing task. */
#define A_TACHOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the A tachometer processing task. */
#define B_TACHOMETER_TASK_PRIORITY (tskIDLE_PRIORITY + 5) /*!< Priority of the B tachometer processing task. */
#define B_TACHOMETER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the B tachometer processing task. */
#define ENCODER_TASK_PRIORITY (tskIDLE_PRIORITY + 4) /*!< Priority of the mode encoder task. */
#define ENCODER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 1280) /*!< Stack size for the mode encoder task. */
#define EXPANDER_TASK_PRIORITY (tskIDLE_PRIORITY + 4) /*!< Priority of the PCF8574 expander task. */
#define EXPANDER_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE) /*!< Stack size for the PCF8574 expander task. */
#define MENU_TASK_PRIORITY (tskIDLE_PRIORITY + 3) /*!< Priority of the menu task. */
#define MENU_TASK_STACK_SIZE (configMINIMAL_STACK_SIZE + 512) /*!< Stack size for the menu task. */
#define TRIAC_ON true /*!< Triac enabled state. */
#define TRIAC_OFF false /*!< Triac disabled state. */
// #define TRIAC_ON true /*!< Triac enabled state. */
// #define TRIAC_OFF false /*!< Triac disabled state. */
#define ENCODER_BUTTON_RELEASED true /*!< Encoder button released state. */
#define ENCODER_BUTTON_PRESSED false /*!< Encoder button pressed state. */
// #define ENCODER_BUTTON_RELEASED true /*!< Encoder button released state. */
// #define ENCODER_BUTTON_PRESSED false /*!< Encoder button pressed state. */
#define LED_OFF ZH_PCF8574_GPIO_LOW /*!< LED turned off (low level). */
#define LED_ON ZH_PCF8574_GPIO_HIGH /*!< LED turned on (high level). */
// #define LED_OFF ZH_PCF8574_GPIO_LOW /*!< LED turned off (low level). */
// #define LED_ON ZH_PCF8574_GPIO_HIGH /*!< LED turned on (high level). */
#define RELAY_OFF ZH_PCF8574_GPIO_LOW /*!< Relay disconnected (low level). */
#define RELAY_ON ZH_PCF8574_GPIO_HIGH /*!< Relay connected (high level). */
// #define RELAY_OFF ZH_PCF8574_GPIO_LOW /*!< Relay disconnected (low level). */
// #define RELAY_ON ZH_PCF8574_GPIO_HIGH /*!< Relay connected (high level). */
#define MODE_ANGLE_ANGLE 0 /*!< Operating mode: both inclinometers active. */
#define MAIN_MENU_ANGLE_ANGLE_NAME "ANGLE/ANGLE" /*!< Menu label for angle/angle mode. */
@@ -104,10 +107,10 @@ extern "C"
*/
typedef struct
{
uint32_t a_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the A inclinometer task. */
uint32_t b_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the B inclinometer task. */
uint32_t a_tachometer_task_min_stack_size; /*!< Minimum free stack size of the A tachometer task. */
uint32_t b_tachometer_task_min_stack_size; /*!< Minimum free stack size of the B tachometer task. */
volatile uint32_t a_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the A inclinometer task. */
volatile uint32_t b_inclinometer_task_min_stack_size; /*!< Minimum free stack size of the B inclinometer task. */
volatile uint32_t a_tachometer_task_min_stack_size; /*!< Minimum free stack size of the A tachometer task. */
volatile uint32_t b_tachometer_task_min_stack_size; /*!< Minimum free stack size of the B tachometer task. */
} task_stats_t;
#ifdef __cplusplus
+6 -4
View File
@@ -1,6 +1,6 @@
description: Honeywell Ram Air Modulation Linear Electromechanical Actuator CMM 21-20-36 P/N 541674-X Linear Actuator Interface Test Box
url: https://github.com/aZholtikov/ate0002
version: "1.2.0"
description: Universal Optical 2-Channel Angle Gauge / Tachometer
url: https://github.com/aZholtikov/ate0005
version: "1.1.2"
license: "Apache-2.0"
maintainers:
- "Alexey Zholtikov <alexey.zholtikov@yandex.ru>"
@@ -19,4 +19,6 @@ dependencies:
zh_tachometer:
git: "https://github.com/aZholtikov/zh_tachometer"
zh_espnow:
git: "https://github.com/aZholtikov/zh_espnow"
git: "https://github.com/aZholtikov/zh_espnow"
zh_menu:
git: "https://github.com/aZholtikov/zh_menu"