Headers cleanups

This commit is contained in:
Oleg Kalachev
2023-12-19 05:06:19 +03:00
parent d3e7291197
commit a174d5cd7d
11 changed files with 19 additions and 24 deletions

View File

@@ -1,6 +1,8 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// Main firmware file
#include "vector.h"
#include "quaternion.h"

View File

@@ -1,6 +1,8 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// Work with the IMU sensor
#include <SPI.h>
#include <MPU9250.h>

View File

@@ -1,6 +1,8 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// Main LED control
#define BLINK_PERIOD 500000
void setupLED()

View File

@@ -1,6 +1,8 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// MAVLink communication
#if WIFI_ENABLED == 1
#include "mavlink/common/mavlink.h"

View File

@@ -1,7 +1,7 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// Motors output
// Motors output control
// Motor: 8520 3.7V
// ESC: KINGDUO Micro Mini 4A 1S Brushed Esc 3.6-6V

View File

@@ -1,6 +1,8 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// Work with the RC receiver
#include <SBUS.h>
const uint16_t channelNeutral[] = {995, 883, 200, 972, 512, 512};

View File

@@ -1,6 +1,8 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// Time related functions
void step()
{
float now = micros() / 1000000.0;

View File

@@ -1,6 +1,8 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// Utility functions
#include "math.h"
float mapf(long x, long in_min, long in_max, float out_min, float out_max)

View File

@@ -1,9 +1,7 @@
// Copyright (c) 2023 Oleg Kalachev <okalachev@gmail.com>
// Repository: https://github.com/okalachev/flix
// https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/WiFiAccessPoint/WiFiAccessPoint.ino
// https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/WiFiClient/WiFiClient.ino
// https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/WiFiUDPClient/WiFiUDPClient.ino
// Wi-Fi support
#if WIFI_ENABLED == 1
@@ -15,9 +13,7 @@
#define WIFI_SSID "flix"
#define WIFI_PASSWORD "flixwifi"
// #define WIFI_UDP_IP "192.168.4.255"
#define WIFI_UDP_IP "255.255.255.255"
// #define WIFI_UDP_IP "192.168.4.2"
#define WIFI_UDP_PORT 14550
WiFiUDP udp;