<commit_before>#include "Smartcar.h"

ESCMotor::ESCMotor(unsigned short pin) {
	_pin = pin;
	setFreqsAndSpeeds();
	setAllowedSpeedLimits();
}

void ESCMotor::setFreqsAndSpeeds(){
	FULL_FORWARD = 50;
        FULL_BACKWARD = 80;
	IDLE_RAW_SPEED = 1500;
	MAX_FRONT_RAW_SPEED = 2000;
	MAX_BACK_RAW_SPEED = 1000;
	_speed = IDLE_RAW_SPEED;
}

void ESCMotor::init(){
	attach(_pin); //attach the servo to its pin
}

void ESCMotor::setSpeed(int speed){ //receives a speed in the scale of -100 to 100<commit_msg>Adjusting the values in the ESC motor so it makes more sense for the average use cases<commit_after>#include "Smartcar.h"

ESCMotor::ESCMotor(unsigned short pin) {
	_pin = pin;
	setFreqsAndSpeeds();
	setAllowedSpeedLimits();
}

void ESCMotor::setFreqsAndSpeeds(){
	FULL_FORWARD = 100;
        FULL_BACKWARD = 100;
	IDLE_RAW_SPEED = 1500;
	MAX_FRONT_RAW_SPEED = 1800;
	MAX_BACK_RAW_SPEED = 1200;
	_speed = IDLE_RAW_SPEED;
}

void ESCMotor::init(){
	attach(_pin); //attach the servo to its pin
}

void ESCMotor::setSpeed(int speed){ //receives a speed in the scale of -100 to 100
{'fraction_non_alphanumeric': 0.10750695088044486, 'fraction_numerical': 0.042632066728452274, 'mean_word_length': 4.966850828729282, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2175599', 'n_tokens_mistral': 489, 'n_tokens_neox': 411, 'n_words': 105}