MARSProgramming / MARS-2020

1 stars 0 forks source link

Determine gear ratios and adjust units #30

Open iamr2003 opened 4 years ago

iamr2003 commented 4 years ago

Work with the mechanical to record all the gear ratios for all the subsystems. Write VIs to adjust for these ratios in sensor reads(ex. might be a vi named turret gearing). Make sure to record the units for everything, inputs to these VIs should be in native units, outputs should be in Rotations of output shaft, or potentially radians in the case of the turret. Only worry about the subsystems whose encoders are being pulled in sensor reads at the moment. Please update the names of sensor_values global to account for units, to allow clarity.

Post the gear ratios you find on slack for reference.

Khensa commented 4 years ago

Link to 2020 Build Season Gear Ratios Document: https://docs.google.com/document/d/1Zn4mE8iOzcElboHYYjMzUpMIq4ZA4AmiqbHUkHgrsWA/edit?usp=sharing

Working on assignment now.

Epicr12 commented 4 years ago

We have completed it. This is the code: https://github.com/jbrusoe/MARS-2020/tree/master/Small_Tasks/Issue%2030/Pratham

it is a subvi

liamhonecker commented 4 years ago

https://github.com/jbrusoe/MARS-2020/tree/master/Small_Tasks/Issue%2030

iamr2003 commented 4 years ago

I don't think I was clear enough in the original description. I want a VI for each subsystem that takes in RPM/Position of the input shaft and outputs the RPM/Position of the outpute shaft. If gearing is 1:1, then you don't need to make subVIs. Any subsystem that doesn't have a gearing like that requires a separate subVI.

Epicr12 commented 4 years ago

I don't think I was clear enough in the original description. I want a VI for each subsystem that takes in RPM/Position of the input shaft and outputs the RPM/Position of the outpute shaft. If gearing is 1:1, then you don't need to make subVIs. Any subsystem that doesn't have a gearing like that requires a separate subVI.

Wouldn't it still work if we had our one subVI that you could input the gear ratio into?

Epicr12 commented 4 years ago

Added everything into the sensor reads in the branch. It is completed with each one having its own VI

wmstanton commented 4 years ago

Work left to do: move the sub VIs to the subsystems folders work with the people working on the dashboard to send the output shaft RPM values to the dashboard.