Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ros_lib_kinetic
MLSettings.h@15:59471daef4cb, 2018-08-31 (annotated)
- Committer:
- WD40andTape
- Date:
- Fri Aug 31 13:54:50 2018 +0000
- Revision:
- 15:59471daef4cb
- Parent:
- 13:a373dfc57b89
- Child:
- 21:0b10d8e615d1
Increased actuator limits to 0.04 m.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dofydoink | 12:595ed862e52f | 1 | // MLSettings.h |
dofydoink | 12:595ed862e52f | 2 | |
dofydoink | 12:595ed862e52f | 3 | #ifndef MLSETTINGS_H |
dofydoink | 12:595ed862e52f | 4 | #define MLSETTINGS_H |
dofydoink | 12:595ed862e52f | 5 | |
dofydoink | 12:595ed862e52f | 6 | // GENERAL SETTINGS |
dofydoink | 12:595ed862e52f | 7 | const unsigned short int N_CHANNELS = 8; // Number of channels to control |
dofydoink | 12:595ed862e52f | 8 | // 1-3: front segment; 4-6: rear segment; 7-8: mid segment |
dofydoink | 12:595ed862e52f | 9 | const int BAUD_RATE = 9600; //115200 |
dofydoink | 12:595ed862e52f | 10 | |
dofydoink | 12:595ed862e52f | 11 | // HL COMMUNICATION SETTINGS |
dofydoink | 12:595ed862e52f | 12 | const bool IS_PRINT_OUTPUT = false; |
dofydoink | 12:595ed862e52f | 13 | const bool IS_DHCP = false; |
dofydoink | 12:595ed862e52f | 14 | const unsigned short int SERVER_PORT = 80; |
dofydoink | 12:595ed862e52f | 15 | |
dofydoink | 12:595ed862e52f | 16 | // LL COMMUNICATION SETTINGS |
dofydoink | 12:595ed862e52f | 17 | const unsigned int LOW_LEVEL_SPI_FREQUENCY = 10000000; |
dofydoink | 12:595ed862e52f | 18 | |
dofydoink | 12:595ed862e52f | 19 | // PATH GENERATION SETTINGS |
WD40andTape | 15:59471daef4cb | 20 | //const float MIN_MAX_ACT_LENS[2] = { 0.0 , 40.0 }; |
WD40andTape | 13:a373dfc57b89 | 21 | const float PATH_SAMPLE_TIME_S = 0.005; //0.01; //0.109 |
dofydoink | 12:595ed862e52f | 22 | const float MAX_LENGTH_MM = 100.0; |
dofydoink | 12:595ed862e52f | 23 | const float MAX_ACTUATOR_LENGTH = 52.2; |
dofydoink | 12:595ed862e52f | 24 | const float MAX_SPEED_MMPS = 24.3457; |
dofydoink | 12:595ed862e52f | 25 | //const float FLT_MAX_CHAMBER_LENGTHS_MM[N_CHANNELS] = {80.0,80.0,80.0,80.0,80.0,80.0,80.0,80.0}; |
dofydoink | 12:595ed862e52f | 26 | //const float FLT_ACTUATOR_CONVERSION[N_CHANNELS] = {0.30586,0.30586,0.30586,0.30586,0.30586,0.4588,0.4588}; // Convert from chamber lengths to actuator lengths |
dofydoink | 12:595ed862e52f | 27 | const float FLT_ACTUATOR_CONVERSION[N_CHANNELS] = {1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0}; // Convert from chamber lengths to actuator |
WD40andTape | 13:a373dfc57b89 | 28 | const float FLT_SMOOTHING_FACTOR = 0.7; //0.1; // 0<x<=1, where 1 is no smoothing |
dofydoink | 12:595ed862e52f | 29 | const float FLT_PERCENT_PATH_TOLERANCE = 0.05; // Additional % tolerance beyond maximum achievable mm tolerance |
dofydoink | 12:595ed862e52f | 30 | |
dofydoink | 12:595ed862e52f | 31 | #endif |