Pitt-RAS / micromouse-2016

7 stars 6 forks source link

Subdirectories #100

Closed ghost closed 7 years ago

ghost commented 7 years ago

As it turns out, the Arduino build system does support source subdirectories in src/.

Modified the directory structure so the entire project resides in src/. Created two subdirectories in src/ called device/ and legacy_motion/. This small amount of organization is already a huge improvement, as my brain can now logically understand where any source file is located. (i.e. it is either a device, or a motion construct, or neither). There's not as many as 20 items in any directory.

The legacy_motion/ directory is intended to encapsulate the existing motion layer and to label it as "legacy", in anticipation of the replacement refactored implementation.

Resolves #99.

ghost commented 7 years ago

Not tested on the robot. Should especially test for the new Encoder structure wrapped by sensors_encoders.

ghost commented 7 years ago

(By the way, I was careful that git sees these files as renamed, as opposed to deleting and creating whole new files.)

ghost commented 7 years ago

Tested on the robot. Exposes #62, which I thought had been fixed, but actually was just hidden.

After #62 is fixed, this should be good to go.