Minor cleanups

This commit is contained in:
Oleg Kalachev 2024-01-05 15:11:07 +03:00
parent e7864b1e55
commit 7a62229125
2 changed files with 2 additions and 4 deletions

View File

@ -36,14 +36,14 @@ void calibrateRC() {
Serial.println("··o ··o\n··· ···\n··· ···");
delay(4000);
for (int i = 0; i < 30; i++) readRC(); // ensure the values are updated
for (uint8_t i = 0; i < RC_CHANNELS; i++) {
for (int i = 0; i < RC_CHANNELS; i++) {
channelMax[i] = channels[i];
}
Serial.println("Calibrate RC: move all sticks to neutral positions within 4 seconds");
Serial.println("··· ···\n··· ·o·\n·o· ···");
delay(4000);
for (int i = 0; i < 30; i++) readRC(); // ensure the values are updated
for (uint8_t i = 0; i < RC_CHANNELS; i++) {
for (int i = 0; i < RC_CHANNELS; i++) {
channelNeutral[i] = channels[i];
}
printRCCal();

View File

@ -8,8 +8,6 @@
#include <WiFi.h>
#include <WiFiClient.h>
#include <WiFiAP.h>
#include "SBUS.h"
#include "mavlink/common/mavlink.h"
#define WIFI_SSID "flix"
#define WIFI_PASSWORD "flixwifi"