ServoOffsetKondo.load()

[Servo86]

説明

Load the servo offset fine tuning values stored in the .rcb action file of HTH3 (HeartToHeart 3).

構文

myoffset.load(filename)

媒介変数

  • myoffset: ServoOffsetKondo type object.
  • filename: The name of the .rcb action file saved by HTH3. Note: This function will only look for action files under the root directory of the SD card. If your 86Duino is not inserted into the SD card, or if no file is specified on the SD card, loading will fail.

戻り値

  • true: The file was loaded successfully.
  • false: File loading failed.

#include <Servo86.h>
 
Servo myservo0;
Servo myservo1;
Servo myservo2;
ServoOffsetKondo myoffset;
 
void setup()
{
   myservo0.attach(9);
   myservo1.attach(11);
   myservo2.attach(5);
 
   myoffset.load("kondo.rcb"); // Load the trim values from the specified file
   myoffset.setOffsets(myservo0, myservo1, myservo2); // Set the offset fine-tuning value of each servo
}
 
void loop() {}

参照


ライブラリリファレンスホーム

86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

上部へスクロール