feat: added airborne variable

This commit is contained in:
Pax1601
2025-03-31 08:14:17 +02:00
parent 825d60e754
commit 1248ffb60b
9 changed files with 26 additions and 4 deletions

View File

@@ -67,6 +67,7 @@ namespace DataIndex {
targetingRange,
aimMethodRange,
acquisitionRange,
airborne,
lastIndex,
endOfData = 255
};

View File

@@ -127,6 +127,7 @@ public:
virtual void setAimMethodRange(double newValue) { updateValue(aimMethodRange, newValue, DataIndex::aimMethodRange); }
virtual void setAcquisitionRange(double newValue) { updateValue(acquisitionRange, newValue, DataIndex::acquisitionRange); }
virtual void setRadarState(bool newValue) { updateValue(radarState, newValue, DataIndex::radarState); }
virtual void setAirborne(bool newValue) { updateValue(airborne, newValue, DataIndex::airborne); }
/********** Getters **********/
virtual string getCategory() { return category; };
@@ -191,6 +192,7 @@ public:
virtual double getAimMethodRange() { return aimMethodRange; }
virtual double getAcquisitionRange() { return acquisitionRange; }
virtual bool getRadarState() { return radarState; }
virtual bool getAirborne() { return airborne; }
protected:
unsigned int ID;
@@ -258,6 +260,7 @@ protected:
double targetingRange = 0;
double aimMethodRange = 0;
double acquisitionRange = 0;
bool airborne = false;
/********** Other **********/
unsigned int taskCheckCounter = 0;