behollan / SpaceBallController

BIRST Team Controller
MIT License
1 stars 1 forks source link

Servo tuning #2

Open behollan opened 7 years ago

behollan commented 7 years ago

Need to tune servo "on" time and also determine speed. Verify that it is the same under load.

Check that the delay loop doesn't mess with any of the other code.

kmachoman09 commented 7 years ago

We can get rid of the variable "cycle," cycle++ and the conditional that uses cycle since we are detaching the servos. It didn't seem to work anyway

behollan commented 7 years ago

Would it make sense to keep it? Worried about it constantly trying to enter that loop (which has a 3 second delay) and bogging things down.

kmachoman09 commented 7 years ago

Yea, lets keep it. So tonight, we went to test the servo with the cooler with no changes from last time, the servo kept spinning. It seems like as soon as we attach the servo to a pin, it just spins. So what i did was comment out servoinit() function and just attached the servos in servospin(). So we definitely need the cycle now. We got the batteries connected to the protoboard without any problems. Our altimeter is reading decently well (about 300ft off). Temp sensors have their harnesses soldered on. Having trouble with the heaters. We supply their rated 5v via a FET and they just don't put out much heat. Hooked them up directly to 5v with little change.