Landing gear RC plane

Hey everyone!
Im trying to make landing gear for my rc airplane. Front gear is retracked by servos and main gear is pulled down by shaft rotated by dc motor. Im using L298N, Limit switches(for motor shaft). I want it to work like that: In default position everything to be open. When i start my transmitter, arduino starts recieving PWM signal. If signal is <1100 then all doors are opening and langing gear is going down(main landing gear checks if limit switch is activated) and if signal >1100 and height is more than 3m gear is going up. This is my first project and can you check if everything is right? Also when im trying lto upload it to ATMega 2560 Pro it tells me "exit status 1"; Error while compiling for Mega 2560.
Thank you so much!
Code: (LGU means Landing Gear UP)

#include <Servo.h>

int ch1; // приемник

#define in1 3 // мотор ляво
#define in2 4 // мотор ляво
#define in3 5 // мотор дясно
#define in4 6 // мотор дясно

int MotorSpeedA = 0; // мотори
int MotorSpeedB = 0; // мотори

Servo front_left;  // преден колесник
Servo front_right;

Servo door_all; // капаци
Servo door_lock;

const int mosfetPin = 7; // LED

const int trigPin = 8; // ултразвук
const int echoPin = 9;
long duration;
int distance;

bool LGU = false;
bool LGUL = false;
bool LGUR = false;

void setup() {
  pinMode(trigPin, OUTPUT); // ultrasonic
  pinMode(echoPin, INPUT); // ultrasonic
  
  pinMode(2, INPUT); // приемник

  pinMode(10, INPUT); //LS-Ляво долу
  pinMode(11, INPUT); //LS-Ляво горе
  pinMode(12, INPUT); //LS-Дясно долу
  pinMode(13, INPUT); //LS-Дясно горе

  pinMode(in1, OUTPUT); // мотори
  pinMode(in2, OUTPUT); // мотори
  pinMode(in3, OUTPUT); // мотори
  pinMode(in4, OUTPUT); // мотори
  
  pinMode(mosfetPin, OUTPUT); // ЛЕД
  
  front_left.attach(14,600,2300);  // жълт кабел
  front_right.attach(15,600,2300);  // сив кабел
  door_all.attach(16,600,2300);  // всички капаци
  door_lock.attach(17,600,2300);  // капаци колесник и ключалка

  door_lock.write(40); // default отвортени ключалки и капаци
  door_all.write(140); // default отворени всички врати
  front_left.write(60);  // default свален преден колесник
  front_right.write(120); // default свален преден колесник

  digitalWrite(in1, LOW); // default спрени задни колесници
  digitalWrite(in2, LOW); // default спрени задни колесници
  digitalWrite(in3, LOW); // default спрени задни колесници
  digitalWrite(in4, LOW); // default спрени задни колесници
   
  Serial.begin(9600);
}
void loop() {
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  duration = pulseIn(echoPin, HIGH);
  distance = duration*0.034/2; // разстояние на самолета от земята
  ch1 = pulseIn(2, HIGH, 25000);
  if (LGU && (ch1<1100)){
    door_lock.write(40); // отваря капак преден колесник и ключалка
    door_all.write(140); // отваря всички капаци
    digitalWrite(mosfetPin, HIGH); // включва лампи
    delay(1500); //изчаква 
    front_left.write(60);  // сваля преден колесник
    front_right.write(120);
    if (LGUL){
    digitalWrite(in1, HIGH); // сваля ляв заден колесник
    digitalWrite(in2, HIGH);
    }
    if (LGUR){
    digitalWrite(in3, HIGH); // сваля десен заден колесник
    digitalWrite(in4, HIGH);
    }
    door_lock.write(140); // затваря капак предпазител преден колесник
    LGU = false;
  }
  if (!LGU && (ch1>1100) && (distance>=300)){
    door_lock.write(40); // отваря капак преден колесник и ключалка
    delay(1500); //изчаква
    front_left.write(180); // качен преден колесник
    front_right.write(0);           
    if (!LGUL){
    digitalWrite(in1, HIGH); // вдига ляв заден колесник
    digitalWrite(in2, LOW);
    }
    if (!LGUR){
    digitalWrite(in3, HIGH); // вдига десен заден колесник
    digitalWrite(in4, LOW);
    }
    door_lock.write(140); // затваря капак предпазител преден колесник
    door_all.write(40); // затваря всички капаци 
    digitalWrite(mosfetPin, LOW); // изключва лампи
    LGU = true;
  }     
  if(digitalRead(10) = LOW){
    LGUL = true;
  }
  if(digitalRead(11) = LOW){
    LGUL = false;
  }
  if(digitalRead(12) = LOW){
    LGUR = true;
  }
  if(digitalRead(13) = LOW){
    LGUR = false;
  }
}

Attach the compiler error report, at least the last 10 - 20 lines.

Ардуино:1.8.12 (Windows Store 1.8.33.0) (Windows 10), Платка:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\plane.ino.cpp:1:0:

D:\Странични файлове\plane\plane.ino: In function 'void loop()':

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:41:14: error: lvalue required as left operand of assignment

 #define LOW  0x0

              ^

D:\Странични файлове\plane\plane.ino:127:24: note: in expansion of macro 'LOW'

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:41:14: error: lvalue required as left operand of assignment

 #define LOW  0x0

              ^

D:\Странични файлове\plane\plane.ino:130:24: note: in expansion of macro 'LOW'

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:41:14: error: lvalue required as left operand of assignment

 #define LOW  0x0

              ^

D:\Странични файлове\plane\plane.ino:133:24: note: in expansion of macro 'LOW'

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.33.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/Arduino.h:41:14: error: lvalue required as left operand of assignment

 #define LOW  0x0

              ^

D:\Странични файлове\plane\plane.ino:136:24: note: in expansion of macro 'LOW'

exit status 1
Грешка при компилирането за платка „Arduino Mega or Mega 2560“.

В този доклад ще има повече информация, ако
в предпочитанията е избрано „Показване на
подробности при компилиране“.

My, is it Russian", knowledge of the Your language is zero.
It looks like You have several statements of "#define LOW 0X0. Or the compiler protests that You try to define it. LOW is already defined in the IDE World.

Its cyrillic alphabet, not russian, but never mind. Thank you! I will check it when i come back home.

I thought about cyrillic but made a guess. Never mind. Unless You find the bug maybe You can translate the error report?

if(digitalRead(11) = LOW){ Oops

@Railroader Everything in cyrilic is folders. Only last one means: Error while compiling- exit status 1
@TheMember- how should i change it? Im totaly new in programming and i was just following different tutorials... This one was “self made part”- but its incorrect :smiley:
Also will it be running all IF in same time? Because last 4 IF are checking limit switch status. First 2 IF and moving the landing gear. Main one is using 2 motors because its on the both sides. So there is 4 limit switches (2 on top and 2 on down side). Motors should be running in the same time and checking limit switches for reaching the end. Then when everithing is done it just changes bool value and loop is stoping until next PWM change. Thanks!

== for comparison

AleksBG:
Im using L298N, Limit switches(for motor shaft). I want it to work like that:

As a side note, I've built a few r/c retracts over the years and found the slot optical switches out of old printers etc. to be more precise.
Micro switches tend to be all over the place when they switch.