<commit_before>/* 

This is an example program for the Photon_Bot library for the
Robot controller of the same name, by MonkMakes.com

You will need to include the following public libraries:

HC_SR04
SoftPWM
SparkIntervalTimer

*/

#include "Photon_Bot/Photon_Bot.h"


double volts = 0.0;
double distance = 0.0;


PhotonBot p = PhotonBot();
HC_SR04 rangefinder = HC_SR04(p.trigPin, p.echoPin);

int control(String command) {
    return p.control(command);
}

int setMotors(String command) {
    return p.setMotors(command);
}

void setup() {
    Spark.function("control", control);
    Spark.function("setmotors", setMotors);
    Spark.variable("volts", &volts, DOUBLE);
    Spark.variable("distance", &distance, DOUBLE);
}

void loop() {
    volts = p.batteryVolts();
    distance = rangefinder.getDistanceCM();
}
<commit_msg>Update WebRover.cpp<commit_after>/* 

This is an example program for the Photon_Bot library for the
Robot controller of the same name, by MonkMakes.com

You will need to include the following public libraries:

HC_SR04
SoftPWM
SparkIntervalTimer

*/

#include "Photon_Bot/Photon_Bot.h"


double volts = 0.0;
double distance = 0.0;


PhotonBot p = PhotonBot();
HC_SR04 rangefinder = HC_SR04(p.trigPin, p.echoPin);

void setup() {
    Spark.function("control", control);
    Spark.function("setmotors", setMotors);
    Spark.variable("volts", &volts, DOUBLE);
    Spark.variable("distance", &distance, DOUBLE);
}

void loop() {
    volts = p.batteryVolts();
    distance = rangefinder.getDistanceCM();
}

int control(String command) {
    return p.control(command);
}

int setMotors(String command) {
    return p.setMotors(command);
}

{'fraction_non_alphanumeric': 0.11853188929001203, 'fraction_numerical': 0.012033694344163659, 'mean_word_length': 4.381877022653722, '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': '901873', 'n_tokens_mistral': 596, 'n_tokens_neox': 567, 'n_words': 151}