# flight-computer.ino

- Project: [Flight_computer1.3](https://flashesp.com/explore/EfTHzumcPZQRHNGEE8glV.md) by rider1757@outlook.com
- Board: DOIT ESP32 DEVKIT V1
- Language: Arduino (C++)
- Web page: https://flashesp.com/explore/EfTHzumcPZQRHNGEE8glV/files/pi4dvSqGuXxXjSNCpTNKa

```cpp
#include <Arduino.h>
#include <Wire.h>
#include <ESP32Servo.h>
#include <WiFi.h>
#include "modules.h"
#include "web.h"
#include <WebServer.h>

WebServer server(80);

void setup(){
  Serial.begin(115200);
  SerialBT.begin("RocketESP32");
  addLog("Bluetooth started");

  Wire.begin(21,22);
  initAll();
  WiFi.mode(WIFI_AP);
  WiFi.softAP("RocketAP","12345678");
  initWebServer(server);
}

void loop(){
  server.handleClient();
  handleBTCommands();
  updateLEDAnimation();
  updateSensorCalculations();
  updateFlightTimer();
}
```
