MARSProgramming / MARS-2020

1 stars 0 forks source link

Lookup Table Logic #33

Closed iamr2003 closed 4 years ago

iamr2003 commented 4 years ago

For the flywheel, the easiest way to tune it will be to say "if in this range of the target, go this RPM" and just define an RPM for each range. First write some logic to read from a double array table, such that it goes for the closest value in its range(not just a simple search). Once this is working, write some file IO logic that reads this table from a text file(so we can save it). This might eventually make its way to the dashboard.

Also, this operation may be occurring hundreds of times a second, so try not to make it too computationally intensive, this might be done with some of memory of last nearest index.

iamr2003 commented 4 years ago

also double check that labview hasn't already written VIs for this purpose

Khensa commented 4 years ago

Completed first part, next time will work on lookup.

Epicr12 commented 4 years ago

Completed the code that finds the value. Need to make it into a subvi

Epicr12 commented 4 years ago

This is the code: https://github.com/jbrusoe/MARS-Tucker-Team/tree/master/Helen/issue%2033/Pratham

liamhonecker commented 4 years ago

We turned it into a SubVi.