Adds actuator service to sync angles

This commit is contained in:
Rune Harlyk
2024-03-29 21:15:38 +01:00
committed by Rune Harlyk
parent f67071fd74
commit 259bc0b5eb
10 changed files with 207 additions and 115 deletions
+12 -4
View File
@@ -1,18 +1,26 @@
#include <ESP32SvelteKit.h>
#include <ActuatorStateService.h>
#include <PsychicHttpServer.h>
#define SERIAL_BAUD_RATE 115200
PsychicHttpServer server;
DRAM_ATTR PsychicHttpServer server;
ESP32SvelteKit esp32sveltekit(&server, 120);
DRAM_ATTR ESP32SvelteKit esp32sveltekit(&server, 120);
void setup() {
ActuatorStateService actuatorStateService = ActuatorStateService(&server, esp32sveltekit.getSecurityManager());
void setup()
{
Serial.begin(SERIAL_BAUD_RATE);
esp32sveltekit.begin();
actuatorStateService.begin();
}
void loop() {
void loop()
{
vTaskDelete(NULL);
}