control.cpp: - Add new systemState CUTTING - change systemState_t from enum to enum class (conflicting with cutter enum) - Add CUTTING functionality to CUT switch and auto cut after target reached if enabled cutter.cpp: - Add function cutter_isRunning() config: - Add GPIO_LAMP macro to config
34 lines
642 B
C++
34 lines
642 B
C++
#pragma once
|
|
extern "C"
|
|
{
|
|
#include <stdio.h>
|
|
#include <freertos/FreeRTOS.h>
|
|
#include <freertos/task.h>
|
|
#include <esp_idf_version.h>
|
|
#include "freertos/queue.h"
|
|
#include "esp_system.h"
|
|
#include "esp_log.h"
|
|
#include "driver/adc.h"
|
|
|
|
#include "rotary_encoder.h"
|
|
#include "max7219.h"
|
|
|
|
}
|
|
#include <cmath>
|
|
|
|
#include "config.hpp"
|
|
#include "gpio_evaluateSwitch.hpp"
|
|
#include "gpio_adc.hpp"
|
|
#include "buzzer.hpp"
|
|
#include "vfd.hpp"
|
|
#include "display.hpp"
|
|
#include "cutter.hpp"
|
|
|
|
|
|
|
|
enum class systemState_t {COUNTING, WINDING_START, WINDING, TARGET_REACHED, CUTTING, MANUAL};
|
|
extern const char* systemStateStr[6];
|
|
|
|
|
|
void task_control(void *pvParameter);
|