Skip to content

Actuator Board Cleanup #17

@davidlenfesty

Description

@davidlenfesty

Aside from migrating to using a servo for firing torpedos, the following cleanup tasks should be done.

  • Just use sin function from math.h instead of the custom sin table. It harms readability more than it matters for performance.
  • Convert the handling of actuator commands to use look up tables instead of massive blocks of if statements. Convert values used into integer values to help with this. (or at the least use if/else if instead of just if)
  • Move hardware definitions to a common hardware.h file.
  • General indentation/code formatting fixes.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions