UPenn-RoboCup / UPennalizers

Open Source Repository for Team UPennalizers
GNU General Public License v3.0
69 stars 38 forks source link

Magic Number Arrays in Config Files #11

Closed jbrindza closed 4 years ago

jbrindza commented 12 years ago

There are a number of 'magic number' array parameters in the config files.

e.g. gyro_stab format: Parameters listed below are used in the gyro stabilization code
Parameters in the tables are {alpha, gyro gain, xxx, deadband}
Alpha alters how quickly the torque is applied in response to perturbation
Gain alters how much torque is applied in response to perturbation
xxx
Deadband defines the range of values that will not be considered as perturbation

There is no reason these should not just be tables with keys that are informative.