コード例 #1
0
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
}
コード例 #2
0
ファイル: Lights.cpp プロジェクト: ChangerR/rov
void Lights::device_setup(){
  Settings::capability_bitarray |= (1 << LIGHTS_CAPABLE);
  light.reset();
  light.write(0);
}