void Mech_Init(void) { RC_Init(); RC_AddPins(GRAB_PIN); RC_SetPulseTime(GRAB_PIN, GRAB_UP_TIME); }
void init_ESC_pulse(void) { // currently using RCpin x4 as defined by RC_Servo.h //look to IO_ports.h to figure out what pin this corresponds to on the micro //corresponds to B0 on the micro and J5 15 on the UNO32 RC_Init(); RC_AddPins(ESC_PIN); int i = 0; for (i; i < 1000000; i++); RC_SetPulseTime(ESC_PIN, 1500); //set intial speed to 0 rpm }