|
Instrument Neutral Distributed Interface INDI 2.2.5
|
Classes | |
| struct | Sample |
Enumerations | |
| enum | Error { ERR_NONE = 0 , ERR_UNKNOWN_COMMAND = 1 , ERR_BAD_ARGUMENTS = 2 , ERR_OUT_OF_RANGE = 3 , ERR_SENSOR_SILENT = 4 , ERR_NO_MAGNET = 5 , ERR_DRIVER_SILENT = 6 , ERR_NOT_NOW = 7 , ERR_NVS_WRITE = 8 , ERR_BAD_FILTER_NAME = 9 } |
| enum | NameCheck { NAME_OK = 0 , NAME_EMPTY = 1 , NAME_TOO_LONG = 2 , NAME_BAD_EDGE = 3 , NAME_BAD_CHAR = 4 , NAME_RESERVED = 5 } |
Functions | |
| bool | name_is_alnum (char c) |
| bool | name_is_allowed (char c) |
| char | name_lower (char c) |
| bool | name_equal_nocase (const char *a, const char *b) |
| bool | name_is_reserved (const char *s) |
| NameCheck | check_filter_name (const char *s) |
| void | sanitize_filter_name (const char *in, char *out, size_t out_size) |
| int | first_duplicate_name (const char *const *names, int count) |
Variables | |
| const int | PROTOCOL_VERSION = 2 |
| const int | MAX_SLOTS = 12 |
| const int | MIN_SLOTS = 2 |
| const int | FACTORY_SLOTS = 5 |
| const size_t | FILTER_NAME_MAX = 32 |
| const size_t | WHEELLY_LINE_MAX = 512 |
| const char | PREFIX_OK [] = "ok" |
| const char | PREFIX_ERROR [] = "error" |
| const char | PREFIX_COMMENT = '#' |
| const char | PREFIX_EVENT = '!' |
| const char | CMD_VERSION [] = "version" |
| const char | CMD_STATUS [] = "status" |
| const char | CMD_GO [] = "go" |
| const char | CMD_STOP [] = "stop" |
| const char | CMD_JOG [] = "jog" |
| const int | JOG_MAX_DEG = 180 |
| const char | CMD_ANGLES [] = "angles" |
| const char | CMD_ANGLE [] = "angle" |
| const int | ANGLE_MAX_DEG = 360 |
| const char | CMD_NAMES [] = "names" |
| const char | CMD_NAME [] = "name" |
| const char | CMD_TEACH [] = "teach" |
| const char | CMD_SAVE [] = "save" |
| const char | CMD_TOLERANCE [] = "tolerance" |
| const char | CMD_MOTOR [] = "motor" |
| const unsigned | MOTOR_MA_MAX = 800 |
| const unsigned long | MOTOR_SPEED_MAX = 5000 |
| const unsigned long | MOTOR_ACCEL_MAX = 50000 |
| const unsigned long | FACTORY_SPEED = 300 |
| const unsigned long | FACTORY_ACCEL = 1200 |
| const unsigned | FACTORY_RUN_MA = 350 |
| const unsigned long | BOOST_SPEED_MAX = 1000 |
| const int | TOLERANCE_MAX_DEG = 45 |
| const int | RETRIES_MAX = 20 |
| const float | FACTORY_GOOD_DEG = 0.3f |
| const float | FACTORY_WARN_DEG = 0.8f |
| const char | CMD_HOLD [] = "hold" |
| const char | CMD_LED [] = "led" |
| const char | CMD_DIAG [] = "diag" |
| const char | CMD_SLOTS [] = "slots" |
| const char | CMD_DIRECTION [] = "direction" |
| const char | ARG_SHORTEST [] = "shortest" |
| const char | ARG_UP [] = "up" |
| const char | ARG_DOWN [] = "down" |
| const char | FACTORY_DIRECTION [] = "shortest" |
| const float | MODEL_DISC_DIAMETER_MM = 145.0f |
| const float | MODEL_CLUTCH_DIAMETER_MM = 50.0f |
| const float | FACTORY_DRIVE_RATIO = MODEL_DISC_DIAMETER_MM / MODEL_CLUTCH_DIAMETER_MM |
| const char | CMD_RATIO [] = "ratio" |
| const char | ARG_LEARN [] = "learn" |
| const float | DRIVE_RATIO_MIN = 1.0f |
| const float | DRIVE_RATIO_MAX = 10.0f |
| const char | CMD_LEGS [] = "legs" |
| const char | F_REPORT [] = "report" |
| const unsigned long | EKOS_FILTER_TIMEOUT_MS = 30000 |
| const uint16_t | RECOMMENDED_HOLD_MA = 150 |
| const char | CMD_SETTLE [] = "settle" |
| const unsigned | FACTORY_SETTLE_MS = 300 |
| const unsigned | SETTLE_MS_MAX = 2000 |
| const char | ARG_ON [] = "on" |
| const char | ARG_OFF [] = "off" |
| const char | ARG_TEST [] = "test" |
| const char | ARG_PULSE [] = "pulse" |
| const char | F_POS [] = "pos" |
| const char | F_ANGLE [] = "angle" |
| const char | F_TARGET [] = "target" |
| const char | F_ERR [] = "err" |
| const char | F_MOTION [] = "motion" |
| const char | F_RETRIES [] = "retries" |
| const char | F_LEGS [] = "legs" |
| const char | F_BOOSTS [] = "boosts" |
| const char | F_OUTCOME [] = "outcome" |
| const char | OUTCOME_NONE [] = "none" |
| const char | F_FROM [] = "from" |
| const char | F_DIR [] = "dir" |
| const char | F_AGC [] = "agc" |
| const char | F_MAG [] = "mag" |
| const char | F_MD [] = "md" |
| const char | F_ML [] = "ml" |
| const char | F_MH [] = "mh" |
| const char | F_NAME [] = "name" |
| const char | F_FW [] = "fw" |
| const char | F_PROTO [] = "proto" |
| const char | F_SERIAL [] = "serial" |
| const char | F_SLOTS [] = "slots" |
| const char | F_GOOD [] = "good" |
| const char | F_WARN [] = "warn" |
| const char | F_MA [] = "ma" |
| const char | F_MS [] = "ms" |
| const char | F_SPEED [] = "speed" |
| const char | F_ACCEL [] = "accel" |
| const char | F_DIRECTION [] = "direction" |
| const char | F_CEILING [] = "ceiling" |
| const char | F_STATE [] = "state" |
| const char | F_ENABLED [] = "enabled" |
| const char | F_MODE [] = "mode" |
| const char | F_SAVED [] = "saved" |
| const char | F_DURATION [] = "duration" |
| const char | F_RATIO [] = "ratio" |
| const char | F_BASE [] = "base" |
| const char | F_FACTORY [] = "factory" |
| const char | F_LEARN [] = "learn" |
| const char | F_LEARNT [] = "learnt" |
| const char | F_N [] = "n" |
| const char | F_KIND [] = "kind" |
| const char | KIND_FIRST [] = "first" |
| const char | KIND_APPROACH [] = "approach" |
| const char | KIND_RETRY [] = "retry" |
| const char | F_JOG [] = "jog" |
| const char | F_STEPS [] = "steps" |
| const char | F_MOTOR [] = "motor" |
| const char | F_AIM [] = "aim" |
| const char | F_TO [] = "to" |
| const char | F_MOVED [] = "moved" |
| const char | F_LONG [] = "long" |
| const char | F_EXPECTED [] = "expected" |
| const char | F_GOT [] = "got" |
| const char | V_YES [] = "yes" |
| const char | V_NO [] = "no" |
| const char | MOTION_IDLE [] = "idle" |
| const char | MOTION_MOVING [] = "moving" |
| const char | MOTION_SETTLING [] = "settling" |
| const char | MOTION_FAILED [] = "failed" |
| const char | EV_ARRIVED [] = "arrived" |
| const char | EV_WARNING [] = "warning" |
| const char | EV_FAILED [] = "failed" |
| const char | EV_SENSOR [] = "sensor" |
| const char | EV_DRIFT [] = "drift" |
| const char | EV_LEG [] = "leg" |
| const char | EV_DRIVER [] = "driver" |
| const char | V_POWER [] = "power" |
| const char | V_RESET [] = "reset" |
| const char | F_REASON [] = "reason" |
| enum wheelly::Error |
| Enumerator | |
|---|---|
| ERR_NONE | |
| ERR_UNKNOWN_COMMAND | |
| ERR_BAD_ARGUMENTS | |
| ERR_OUT_OF_RANGE | |
| ERR_SENSOR_SILENT | |
| ERR_NO_MAGNET | |
| ERR_DRIVER_SILENT | |
| ERR_NOT_NOW | |
| ERR_NVS_WRITE | |
| ERR_BAD_FILTER_NAME | |
Definition at line 475 of file wheelly_protocol.h.
| enum wheelly::NameCheck |
| Enumerator | |
|---|---|
| NAME_OK | |
| NAME_EMPTY | |
| NAME_TOO_LONG | |
| NAME_BAD_EDGE | |
| NAME_BAD_CHAR | |
| NAME_RESERVED | |
Definition at line 504 of file wheelly_protocol.h.
|
inline |
Definition at line 576 of file wheelly_protocol.h.
|
inline |
Definition at line 680 of file wheelly_protocol.h.
|
inline |
Definition at line 531 of file wheelly_protocol.h.
|
inline |
Definition at line 519 of file wheelly_protocol.h.
|
inline |
Definition at line 514 of file wheelly_protocol.h.
|
inline |
Definition at line 545 of file wheelly_protocol.h.
|
inline |
Definition at line 524 of file wheelly_protocol.h.
|
inline |
Definition at line 611 of file wheelly_protocol.h.
| const int wheelly::ANGLE_MAX_DEG = 360 |
Definition at line 123 of file wheelly_protocol.h.
| const char wheelly::ARG_DOWN[] = "down" |
Definition at line 223 of file wheelly_protocol.h.
| const char wheelly::ARG_LEARN[] = "learn" |
Definition at line 272 of file wheelly_protocol.h.
| const char wheelly::ARG_OFF[] = "off" |
Definition at line 323 of file wheelly_protocol.h.
| const char wheelly::ARG_ON[] = "on" |
Definition at line 322 of file wheelly_protocol.h.
| const char wheelly::ARG_PULSE[] = "pulse" |
Definition at line 328 of file wheelly_protocol.h.
| const char wheelly::ARG_SHORTEST[] = "shortest" |
Definition at line 221 of file wheelly_protocol.h.
| const char wheelly::ARG_TEST[] = "test" |
Definition at line 324 of file wheelly_protocol.h.
| const char wheelly::ARG_UP[] = "up" |
Definition at line 222 of file wheelly_protocol.h.
| const unsigned long wheelly::BOOST_SPEED_MAX = 1000 |
Definition at line 171 of file wheelly_protocol.h.
| const char wheelly::CMD_ANGLE[] = "angle" |
Definition at line 122 of file wheelly_protocol.h.
| const char wheelly::CMD_ANGLES[] = "angles" |
Definition at line 115 of file wheelly_protocol.h.
| const char wheelly::CMD_DIAG[] = "diag" |
Definition at line 201 of file wheelly_protocol.h.
| const char wheelly::CMD_DIRECTION[] = "direction" |
Definition at line 220 of file wheelly_protocol.h.
| const char wheelly::CMD_GO[] = "go" |
Definition at line 100 of file wheelly_protocol.h.
| const char wheelly::CMD_HOLD[] = "hold" |
Definition at line 199 of file wheelly_protocol.h.
| const char wheelly::CMD_JOG[] = "jog" |
Definition at line 107 of file wheelly_protocol.h.
| const char wheelly::CMD_LED[] = "led" |
Definition at line 200 of file wheelly_protocol.h.
| const char wheelly::CMD_LEGS[] = "legs" |
Definition at line 278 of file wheelly_protocol.h.
| const char wheelly::CMD_MOTOR[] = "motor" |
Definition at line 135 of file wheelly_protocol.h.
| const char wheelly::CMD_NAME[] = "name" |
Definition at line 131 of file wheelly_protocol.h.
| const char wheelly::CMD_NAMES[] = "names" |
Definition at line 130 of file wheelly_protocol.h.
| const char wheelly::CMD_RATIO[] = "ratio" |
Definition at line 271 of file wheelly_protocol.h.
| const char wheelly::CMD_SAVE[] = "save" |
Definition at line 133 of file wheelly_protocol.h.
| const char wheelly::CMD_SETTLE[] = "settle" |
Definition at line 317 of file wheelly_protocol.h.
| const char wheelly::CMD_SLOTS[] = "slots" |
Definition at line 202 of file wheelly_protocol.h.
| const char wheelly::CMD_STATUS[] = "status" |
Definition at line 99 of file wheelly_protocol.h.
| const char wheelly::CMD_STOP[] = "stop" |
Definition at line 101 of file wheelly_protocol.h.
| const char wheelly::CMD_TEACH[] = "teach" |
Definition at line 132 of file wheelly_protocol.h.
| const char wheelly::CMD_TOLERANCE[] = "tolerance" |
Definition at line 134 of file wheelly_protocol.h.
| const char wheelly::CMD_VERSION[] = "version" |
Definition at line 98 of file wheelly_protocol.h.
| const float wheelly::DRIVE_RATIO_MAX = 10.0f |
Definition at line 274 of file wheelly_protocol.h.
| const float wheelly::DRIVE_RATIO_MIN = 1.0f |
Definition at line 273 of file wheelly_protocol.h.
| const unsigned long wheelly::EKOS_FILTER_TIMEOUT_MS = 30000 |
Definition at line 284 of file wheelly_protocol.h.
| const char wheelly::EV_ARRIVED[] = "arrived" |
Definition at line 433 of file wheelly_protocol.h.
| const char wheelly::EV_DRIFT[] = "drift" |
Definition at line 449 of file wheelly_protocol.h.
| const char wheelly::EV_DRIVER[] = "driver" |
Definition at line 464 of file wheelly_protocol.h.
| const char wheelly::EV_FAILED[] = "failed" |
Definition at line 435 of file wheelly_protocol.h.
| const char wheelly::EV_LEG[] = "leg" |
Definition at line 455 of file wheelly_protocol.h.
| const char wheelly::EV_SENSOR[] = "sensor" |
Definition at line 436 of file wheelly_protocol.h.
| const char wheelly::EV_WARNING[] = "warning" |
Definition at line 434 of file wheelly_protocol.h.
| const char wheelly::F_ACCEL[] = "accel" |
Definition at line 383 of file wheelly_protocol.h.
| const char wheelly::F_AGC[] = "agc" |
Definition at line 361 of file wheelly_protocol.h.
| const char wheelly::F_AIM[] = "aim" |
Definition at line 412 of file wheelly_protocol.h.
| const char wheelly::F_ANGLE[] = "angle" |
Definition at line 334 of file wheelly_protocol.h.
| const char wheelly::F_BASE[] = "base" |
Definition at line 398 of file wheelly_protocol.h.
| const char wheelly::F_BOOSTS[] = "boosts" |
Definition at line 345 of file wheelly_protocol.h.
| const char wheelly::F_CEILING[] = "ceiling" |
Definition at line 388 of file wheelly_protocol.h.
| const char wheelly::F_DIR[] = "dir" |
Definition at line 358 of file wheelly_protocol.h.
| const char wheelly::F_DIRECTION[] = "direction" |
Definition at line 384 of file wheelly_protocol.h.
| const char wheelly::F_DURATION[] = "duration" |
Definition at line 393 of file wheelly_protocol.h.
| const char wheelly::F_ENABLED[] = "enabled" |
Definition at line 390 of file wheelly_protocol.h.
| const char wheelly::F_ERR[] = "err" |
Definition at line 336 of file wheelly_protocol.h.
| const char wheelly::F_EXPECTED[] = "expected" |
Definition at line 418 of file wheelly_protocol.h.
| const char wheelly::F_FACTORY[] = "factory" |
Definition at line 399 of file wheelly_protocol.h.
| const char wheelly::F_FROM[] = "from" |
Definition at line 357 of file wheelly_protocol.h.
| const char wheelly::F_FW[] = "fw" |
Definition at line 369 of file wheelly_protocol.h.
| const char wheelly::F_GOOD[] = "good" |
Definition at line 378 of file wheelly_protocol.h.
| const char wheelly::F_GOT[] = "got" |
Definition at line 419 of file wheelly_protocol.h.
| const char wheelly::F_JOG[] = "jog" |
Definition at line 409 of file wheelly_protocol.h.
| const char wheelly::F_KIND[] = "kind" |
Definition at line 405 of file wheelly_protocol.h.
| const char wheelly::F_LEARN[] = "learn" |
Definition at line 400 of file wheelly_protocol.h.
| const char wheelly::F_LEARNT[] = "learnt" |
Definition at line 401 of file wheelly_protocol.h.
| const char wheelly::F_LEGS[] = "legs" |
Definition at line 342 of file wheelly_protocol.h.
| const char wheelly::F_LONG[] = "long" |
Definition at line 415 of file wheelly_protocol.h.
| const char wheelly::F_MA[] = "ma" |
Definition at line 380 of file wheelly_protocol.h.
| const char wheelly::F_MAG[] = "mag" |
Definition at line 362 of file wheelly_protocol.h.
| const char wheelly::F_MD[] = "md" |
Definition at line 363 of file wheelly_protocol.h.
| const char wheelly::F_MH[] = "mh" |
Definition at line 365 of file wheelly_protocol.h.
| const char wheelly::F_ML[] = "ml" |
Definition at line 364 of file wheelly_protocol.h.
| const char wheelly::F_MODE[] = "mode" |
Definition at line 391 of file wheelly_protocol.h.
| const char wheelly::F_MOTION[] = "motion" |
Definition at line 337 of file wheelly_protocol.h.
| const char wheelly::F_MOTOR[] = "motor" |
Definition at line 411 of file wheelly_protocol.h.
| const char wheelly::F_MOVED[] = "moved" |
Definition at line 414 of file wheelly_protocol.h.
| const char wheelly::F_MS[] = "ms" |
Definition at line 381 of file wheelly_protocol.h.
| const char wheelly::F_N[] = "n" |
Definition at line 404 of file wheelly_protocol.h.
| const char wheelly::F_NAME[] = "name" |
Definition at line 368 of file wheelly_protocol.h.
| const char wheelly::F_OUTCOME[] = "outcome" |
Definition at line 355 of file wheelly_protocol.h.
| const char wheelly::F_POS[] = "pos" |
Definition at line 333 of file wheelly_protocol.h.
| const char wheelly::F_PROTO[] = "proto" |
Definition at line 370 of file wheelly_protocol.h.
| const char wheelly::F_RATIO[] = "ratio" |
Definition at line 397 of file wheelly_protocol.h.
| const char wheelly::F_REASON[] = "reason" |
Definition at line 489 of file wheelly_protocol.h.
| const char wheelly::F_REPORT[] = "report" |
Definition at line 279 of file wheelly_protocol.h.
| const char wheelly::F_RETRIES[] = "retries" |
Definition at line 338 of file wheelly_protocol.h.
| const char wheelly::F_SAVED[] = "saved" |
Definition at line 392 of file wheelly_protocol.h.
| const char wheelly::F_SERIAL[] = "serial" |
Definition at line 371 of file wheelly_protocol.h.
| const char wheelly::F_SLOTS[] = "slots" |
Definition at line 375 of file wheelly_protocol.h.
| const char wheelly::F_SPEED[] = "speed" |
Definition at line 382 of file wheelly_protocol.h.
| const char wheelly::F_STATE[] = "state" |
Definition at line 389 of file wheelly_protocol.h.
| const char wheelly::F_STEPS[] = "steps" |
Definition at line 410 of file wheelly_protocol.h.
| const char wheelly::F_TARGET[] = "target" |
Definition at line 335 of file wheelly_protocol.h.
| const char wheelly::F_TO[] = "to" |
Definition at line 413 of file wheelly_protocol.h.
| const char wheelly::F_WARN[] = "warn" |
Definition at line 379 of file wheelly_protocol.h.
| const unsigned long wheelly::FACTORY_ACCEL = 1200 |
Definition at line 156 of file wheelly_protocol.h.
| const char wheelly::FACTORY_DIRECTION[] = "shortest" |
Definition at line 232 of file wheelly_protocol.h.
| const float wheelly::FACTORY_DRIVE_RATIO = MODEL_DISC_DIAMETER_MM / MODEL_CLUTCH_DIAMETER_MM |
Definition at line 265 of file wheelly_protocol.h.
| const float wheelly::FACTORY_GOOD_DEG = 0.3f |
Definition at line 197 of file wheelly_protocol.h.
| const unsigned wheelly::FACTORY_RUN_MA = 350 |
Definition at line 165 of file wheelly_protocol.h.
| const unsigned wheelly::FACTORY_SETTLE_MS = 300 |
Definition at line 318 of file wheelly_protocol.h.
| const int wheelly::FACTORY_SLOTS = 5 |
Definition at line 81 of file wheelly_protocol.h.
| const unsigned long wheelly::FACTORY_SPEED = 300 |
Definition at line 155 of file wheelly_protocol.h.
| const float wheelly::FACTORY_WARN_DEG = 0.8f |
Definition at line 198 of file wheelly_protocol.h.
| const size_t wheelly::FILTER_NAME_MAX = 32 |
Definition at line 83 of file wheelly_protocol.h.
| const int wheelly::JOG_MAX_DEG = 180 |
Definition at line 114 of file wheelly_protocol.h.
| const char wheelly::KIND_APPROACH[] = "approach" |
Definition at line 407 of file wheelly_protocol.h.
| const char wheelly::KIND_FIRST[] = "first" |
Definition at line 406 of file wheelly_protocol.h.
| const char wheelly::KIND_RETRY[] = "retry" |
Definition at line 408 of file wheelly_protocol.h.
| const int wheelly::MAX_SLOTS = 12 |
Definition at line 75 of file wheelly_protocol.h.
| const int wheelly::MIN_SLOTS = 2 |
Definition at line 80 of file wheelly_protocol.h.
| const float wheelly::MODEL_CLUTCH_DIAMETER_MM = 50.0f |
Definition at line 264 of file wheelly_protocol.h.
| const float wheelly::MODEL_DISC_DIAMETER_MM = 145.0f |
Definition at line 263 of file wheelly_protocol.h.
| const char wheelly::MOTION_FAILED[] = "failed" |
Definition at line 429 of file wheelly_protocol.h.
| const char wheelly::MOTION_IDLE[] = "idle" |
Definition at line 426 of file wheelly_protocol.h.
| const char wheelly::MOTION_MOVING[] = "moving" |
Definition at line 427 of file wheelly_protocol.h.
| const char wheelly::MOTION_SETTLING[] = "settling" |
Definition at line 428 of file wheelly_protocol.h.
| const unsigned long wheelly::MOTOR_ACCEL_MAX = 50000 |
Definition at line 144 of file wheelly_protocol.h.
| const unsigned wheelly::MOTOR_MA_MAX = 800 |
Definition at line 142 of file wheelly_protocol.h.
| const unsigned long wheelly::MOTOR_SPEED_MAX = 5000 |
Definition at line 143 of file wheelly_protocol.h.
| const char wheelly::OUTCOME_NONE[] = "none" |
Definition at line 356 of file wheelly_protocol.h.
| const char wheelly::PREFIX_COMMENT = '#' |
Definition at line 93 of file wheelly_protocol.h.
| const char wheelly::PREFIX_ERROR[] = "error" |
Definition at line 92 of file wheelly_protocol.h.
| const char wheelly::PREFIX_EVENT = '!' |
Definition at line 94 of file wheelly_protocol.h.
| const char wheelly::PREFIX_OK[] = "ok" |
Definition at line 91 of file wheelly_protocol.h.
| const int wheelly::PROTOCOL_VERSION = 2 |
Definition at line 55 of file wheelly_protocol.h.
| const uint16_t wheelly::RECOMMENDED_HOLD_MA = 150 |
Definition at line 296 of file wheelly_protocol.h.
| const int wheelly::RETRIES_MAX = 20 |
Definition at line 178 of file wheelly_protocol.h.
| const unsigned wheelly::SETTLE_MS_MAX = 2000 |
Definition at line 319 of file wheelly_protocol.h.
| const int wheelly::TOLERANCE_MAX_DEG = 45 |
Definition at line 177 of file wheelly_protocol.h.
| const char wheelly::V_NO[] = "no" |
Definition at line 423 of file wheelly_protocol.h.
| const char wheelly::V_POWER[] = "power" |
Definition at line 465 of file wheelly_protocol.h.
| const char wheelly::V_RESET[] = "reset" |
Definition at line 466 of file wheelly_protocol.h.
| const char wheelly::V_YES[] = "yes" |
Definition at line 422 of file wheelly_protocol.h.
| const size_t wheelly::WHEELLY_LINE_MAX = 512 |
Definition at line 87 of file wheelly_protocol.h.