 |
SimpleFOClibrary
2.1
|
Go to the documentation of this file.
5 #include "../common/base_classes/FOCMotor.h"
6 #include "../common/pid.h"
7 #include "../common/lowpass_filter.h"
66 void run(Stream &reader);
78 void run(
char* user_input);
167 void scalar(
float* value,
char* user_cmd);
173 char* call_label[20];
177 char received_chars[20] = {0};
185 void printVerbose(
const char* message);
191 void printVerbose(
const __FlashStringHelper *message);
197 void print(
const float number);
198 void print(
const int number);
199 void print(
const char* message);
200 void print(
const __FlashStringHelper *message);
201 void print(
const char message);
202 void println(
const float number);
203 void println(
const int number);
204 void println(
const char* message);
205 void println(
const __FlashStringHelper *message);
206 void println(
const char message);
void add(char id, CommandCallback onCommand, char *label=nullptr)
uint8_t decimal_places
number of decimal places to be used when displaying numbers
VerboseMode verbose
flag signaling that the commands should output user understanable text
void lpf(LowPassFilter *lpf, char *user_cmd)
void pid(PIDController *pid, char *user_cmd)
void(* CommandCallback)(char *)
command callback function pointer
void scalar(float *value, char *user_cmd)
Stream * com_port
Serial terminal variable if provided.
void motor(FOCMotor *motor, char *user_cmd)