You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Aside from migrating to using a servo for firing torpedos, the following cleanup tasks should be done.
sin
function frommath.h
instead of the custom sin table. It harms readability more than it matters for performance.hardware.h
file.The text was updated successfully, but these errors were encountered: