Articles Posted by the Author:

  • capture()

    capture()

    描述 读取指定 KONDO 伺服机的当前位置。 KONDO 的 RC 伺服机提供了回传当前位置的特殊功能,此函式支援了此功能,可用于读取 KRS-786/788HV 及 KRS-4012/4014HV 伺服机的实际位置。 使用注意事项: 呼叫此函式前,需先确认所有伺服机皆处于脱力状态,此函式才会有作用;若尚有伺服机处于出力状态,应先呼叫 Servo 类别的 release() 函式让伺服机脱力。 KONDO 伺服机的讯号线需接上提升电阻,86Duino 才能读取到其回传的位置,请参考 KONDO 伺服机接线范例。 语法 myframe.capture(servo) 参数 myframe:ServoFrameKondo 型别的物件。 servo:Servo 型别的物件。 回传 KONDO 伺服机回传的当前位置。如果读取失败,则回传 0。 范例 See also - positions[] - save() 函式库参考主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike […]


  • load()

    load()

    描述 载入 Innovati 动作编辑器製作的 .otxt 伺服机偏移量微调值档案。 语法 myoffset.load(filename) 参数 myoffset:ServoOffsetInno 型别的物件。 filename:由 Innovati 动作编辑器所储存的 .otxt 伺服机偏移量微调值档案名称。注意:此函式只会到 SD 卡的根目录下寻找指定档案,假如您的 86Duino 没有插入 SD 卡,或者 SD 卡中没有指定档案,则载入会失败。 回传 true:档案载入成功。 false:档案载入失败。 范例 See also - offsets[] - save() 函式库参考主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference […]


  • save()

    save()

    描述 将 offsets[] 阵列的内容储存为可被 ServoFrame 载入的伺服机偏移量微调值档案。 语法 myoffset.save(filename) 参数 myoffset:ServoOffsetInno 型别的物件。 filename:指定的档案名称。注意:档案会储存至 SD 卡的根目录下,假如您的 86Duino 没有插入 SD 卡,则储存会失败。 回传 true:档案储存成功。 false:档案储存失败。 范例 See also - offsets[] - load() 函式库参考主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.




  • ServoOffsetInno 建构子

    ServoOffsetInno 建构子

    描述 初始化 ServoOffsetInno 类别。 ServoOffsetInno 是继承于 ServoOffset 类别,能载入用 Innovati 动作编辑器所产生的偏移量微调值档案。 语法 ServoOffsetInno myoffset ServoOffsetInno myoffset(filename) 参数 filename:Innovati 动作编辑器产生的 .otxt 偏移量微调值档案名称。 如果有输入以上参数,则 ServoOffsetInno 在初始化类别时,会自动载入该档案内容做为初始的偏移量微调值。请注意,您必须将档案放在 SD 卡根目录下;假如您的 86Duino 没有置入 SD 卡,或者 SD 卡内不包含动作档案,则档案载入会失败。 范例 See also - offsets[] - setOffsets() 函式库参考主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code […]


  • load()

    load()

    描述 载入 HTH3 (HeartToHeart 3) 的 .rcb 动作档案裡储存的伺服机偏移量微调值。 语法 myoffset.load(filename) 参数 myoffset:ServoOffsetKondo 型别的物件。 filename:由 HTH3 所储存的 .rcb 动作档案名称。注意:此函式只会到 SD 卡的根目录下寻找动作档案,假如您的 86Duino 没有插入 SD 卡,或者 SD 卡中没有指定档案,则载入会失败。 回传 true:档案载入成功。 false:档案载入失败。 范例 See also - offsets[] - save() 函式库参考主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in […]


  • save()

    save()

    描述 将 offsets[] 阵列的内容储存为可被 ServoFrame 载入的伺服机偏移量微调值档案。 语法 myoffset.save(filename) 参数 myoffset:ServoOffsetKondo 型别的物件。 filename:指定的档案名称。注意:档案会储存至 SD 卡的根目录下,假如您的 86Duino 没有插入 SD 卡,则储存会失败。 回传 true:档案储存成功。 false:档案储存失败。 范例 See also - offsets[] - load() 函式库参考主页面 The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.