mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 17:16:10 +00:00
Headers cleanups
This commit is contained in:
@@ -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"
|
||||
|
||||
|
@@ -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>
|
||||
|
||||
|
@@ -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()
|
||||
|
@@ -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"
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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};
|
||||
|
@@ -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;
|
||||
|
@@ -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)
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user