This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static bool SymmetricHysteresis( bool currentState, float input, float threshold, float hysteresis ) | |
| { | |
| if( input > threshold + hysteresis ) | |
| { | |
| return true; | |
| } | |
| if( input < threshold - hysteresis ) | |
| { | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class Request | |
| { | |
| public const string Version = "1.0"; | |
| public const string Type = "request"; | |
| public const string BaseUrl = "yourBaseUrl"; | |
| public static async Task<T> DoPostRequestJsonAsync<T>(string udid, string cmd, object postData) where T : class, new() | |
| { | |
| var serializableObject = CreateRequestJson(udid, cmd, postData); | |
| try |