<commit_before>#include "QuadcopterThrust.hpp"
#include "Controller.hpp"

QuadcopterThrust::QuadcopterThrust
{
	min = 28000;
	max = 40000;
	start = 28000;
	startMax = 42000;
}

void setThrust( double battery )
{

}

void QuadcopterThrust::setMin( unsigned int min )
{
	this->min = min;
}

unsigned int QuadcopterThrust::getMin()
{
	return min;
}

void QuadcopterThrust::setMax( unsigned int max )
{
	this->max = max;
}

unsigned int QuadcopterThrust::getMax()
{
	return max;
}

void QuadcopterThrust::setStartMax( unsigned int startMax )
{
	this->startMax = startMax;
}
<commit_msg>QC Thrust helper class finished<commit_after>#include "QuadcopterThrust.hpp"
#include "Controller.hpp"

QuadcopterThrust::QuadcopterThrust
{
	this->min = 28000;
	this->max = 40000;
	this->start = 28000;
	this->startMax = 42000;
}

void setThrust( double battery )
{
	if( battery > 4 )
	{
		return;
	}
	else if( battery > 3 )
	{
		this->min += ((unsigned int) ((battery-4) * QUADCOPTER_THRUST_RANGE));
		this->max += ((unsigned int) ((battery-4) * QUADCOPTER_THRUST_RANGE));
		this->start += ((unsigned int) ((battery-4) * QUADCOPTER_THRUST_RANGE));
		this->startMax += ((unsigned int) ((battery-4) * QUADCOPTER_THRUST_RANGE));
	}
	else 
	{
		this->min += QUADCOPTER_THRUST_RANGE;
		this->max += QUADCOPTER_THRUST_RANGE;
		this->start += QUADCOPTER_THRUST_RANGE;
		this->startMax += QUADCOPTER_THRUST_RANGE;
	}
}

void QuadcopterThrust::setMin( unsigned int min )
{
	this->min = min;
}

unsigned int QuadcopterThrust::getMin()
{
	return min;
}

void QuadcopterThrust::setMax( unsigned int max )
{
	this->max = max;
}

unsigned int QuadcopterThrust::getMax()
{
	return max;
}

void QuadcopterThrust::setStartMax( unsigned int startMax )
{
	this->startMax = startMax;
}

{'fraction_non_alphanumeric': 0.13893653516295026, 'fraction_numerical': 0.026300743281875358, 'mean_word_length': 4.892255892255892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '956159', 'n_tokens_mistral': 756, 'n_tokens_neox': 692, 'n_words': 137}