ServoFrameKondo builder

[Servo86]

Description

Initialize the ServoFrameKondo category.

ServoFrameKondo is the successor to the ServoFrame category and can load robot frames made with the Kondo action editor HTH3 (HeartToHeart 3).

Syntax

ServoFrameKondo myframe
ServoFrameKondo myframe(filename, frame_name)

Parameters

  • filename: the name of the .rcb action file saved by HTH3.
  • frame_name: The name of the action frame (can be obtained by querying in HTH3).

If the above two parameters are entered, ServoFrameKondo will automatically load the specified action frame in the file as the initial action frame when initializing the class. Please note that you must place the file in the root directory of the SD card; if your 86Duino is not placed on the SD card, or if the SD card does not contain the action file, the file loading will fail.

Example

#include <Servo86.h>
 
Servo myservo0;
Servo myservo1;
Servo myservo2;
 
// Load "Frame0" in kondo.rcb action file from SD card
ServoFrameKondo myframe("kondo.rcb", "Frame0");
 
void setup()
{
   myservo0.attach(21);
   myservo1.attach(23);
   myservo2.attach(25);
   myframe.playPositions(myservo0, myservo1, myservo2); // play action frames
}
 
void loop() {}

See also


Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Scroll to Top