void Thrusters::device_setup(){ port_motor.reset(); vertical_motor.reset(); starboard_motor.reset(); thrusterOutput.reset(); controltime.reset(); bypasssmoothing = false; #ifdef ESCPOWER_PIN escpower.reset(); escpower.write(1); //Turn on the ESCs #endif }
void Lights::device_setup(){ Settings::capability_bitarray |= (1 << LIGHTS_CAPABLE); light.reset(); light.write(0); }