Asked — Edited

Can Someone Help Me With The Development Of A ARC Skill?

Can someone help me with the development of a ARC skill?  I have put together a Arduino script that is for an ESP32 it contains the EZB firmware and it also has a very robust MPU6050 logic.  I need to have the skill in ARC be able to allow some options to be set and also bring MPU data back in variables.  Like I said I have all the logic I just need help making the UI for ARC.

If you are willing to help let me know and I will send you the code.


ARC Pro

Upgrade to ARC Pro

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

#49  

yep I was just reading that.... under your example code..   Thanks for getting back to me so fast!

#50   — Edited

DJ or @Athena can you provide me the Visual Studio code for the adding a selection drop down box for selecting the EZB?  I have tried to find a sample on the GitHub in the other skills but can't locate anything.   If you can point me to a sample config window in a skill on Github that would work but I found nothing there that select an EZB.

PRO
Canada
#51  

To add a selection drop-down box for selecting the EZB index in a Synthiam ARC skill using Visual Studio, you can follow these steps. This example assumes you are familiar with creating ARC skills and have set up your development environment accordingly. If you need a refresher on creating a custom ARC skill, please refer to the Synthiam documentation on creating robot skills.

  1. Open Your Skill Project in Visual Studio:

    • Open your ARC skill project in Visual Studio.
  2. Add a ComboBox to Your Skill's Configuration Form:

    • In the Designer view of your skill's configuration form, drag a ComboBox control from the toolbox onto the form. This ComboBox will be used for selecting the EZB index.
  3. Configure the ComboBox:

    • Set the Name property of the ComboBox to something meaningful, like cmbEZBIndex.
    • Optionally, set the DropDownStyle property to DropDownList to prevent users from entering their own values.
  4. Populate the ComboBox:

    • In the form's constructor or a suitable initialization method, populate the ComboBox with EZB indices. You might want to allow for the number of EZBs you expect to support. Here's an example code snippet that adds four EZB indices to the ComboBox:
public MySkillConfigForm()
{
    InitializeComponent();

    // Populate the ComboBox with EZB indices
    for (int i = 0; i < 4; i++) // Assuming support for up to 4 EZBs
    {
        cmbEZBIndex.Items.Add(i.ToString());
    }

    cmbEZBIndex.SelectedIndex = 0; // Default to the first EZB
}
  1. Use the Selected EZB Index in Your Code:
    • When you need to use the selected EZB index in your skill's logic, you can retrieve it from the ComboBox. Here's an example of how to get the selected index and use it in a method that sends a command:
private void SendCommandToSelectedEZB()
{
    // Get the selected EZB index
    int selectedEZBIndex = cmbEZBIndex.SelectedIndex;

    // Check if a valid index is selected
    if (selectedEZBIndex >= 0)
    {
        // Example command to send, replace with your actual command logic
        var response = EZBManager.EZBs[selectedEZBIndex].SendCommandData(12, 0x00);
        
        // Handle the response as needed
    }
}
  1. Build and Test Your Skill:
    • Build your skill project and test it in ARC to ensure the ComboBox allows for the selection of an EZB index and that commands are correctly sent to the selected EZB.

This example provides a basic approach to adding a selection drop-down for EZB indices in your ARC skill. Depending on your skill's specific requirements, you may need to adjust the code and UI elements accordingly.


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.