Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.util.Log;

public class Main {
    public static String getServoControlMessage(int servo, int middleValue, int offset, double percent) {
        int value = middleValue + (int) (offset * percent / 100.0);
        Log.i("Message", value + "");
        return "servo set " + servo + " " + value + "\n";
    }
}