PETRONE / BLE / Protocol / Structs / Light
Modified : 2017.10.18


Introduce the LED control structures



Protocol::LightMode

Communicates one LED mode change

namespace Protocol
{
    struct LightMode
    {
        LightModeBase   lightMode;
    };
}



Protocol::LightMode2

Communicates two LED mode change

namespace Protocol
{
    struct LightMode2
    {
        LightModeBase   lightMode1;
        LightModeBase   lightMode2;
    };
}



Protocol::LightModeCommand

Communicates one LED mode and one Command change

namespace Protocol
{
    struct LightModeCommand
    {
        LightModeBase   lightMode;
        CommandBase     command;
    };
}



Protocol::LightModeCommandIr

Communicates one LED mode and one Command and IR Message change

namespace Protocol
{
    struct LightModeCommandIr
    {
        LightModeBase   lightMode;
        CommandBase     command;
        u32             irData;
    };
}



Protocol::LightModeColor

Communicates one LED mode change with RGB value.

namespace Protocol
{
    struct LightModeColor
    {
        LightModeColorBase   lightModeColor;
    };
}



Protocol::LightModeColor2

Communicates two LED mode change with RGB value.

namespace Protocol
{
    struct LightModeColor2
    {
        LightModeColorBase   lightModeColor1;
        LightModeColorBase   lightModeColor2;
    };
}



Protocol::LightEvent

Communicates one LED event change

namespace Protocol
{
    struct LightEvent
    {
        LightEventBase   lightEvent;
    };
}



Protocol::LightEvent2

Communicates two LED event change

namespace Protocol
{
    struct LightEvent2
    {
        LightEventBase   lightEvent1;
        LightEventBase   lightEvent2;
    };
}



Protocol::LightEventCommand

Communicates one LED event and one Command change

namespace Protocol
{
    struct LightEventCommand
    {
        LightEventBase   lightEvent;
        CommandBase      command;
    };
}



Protocol::LightEventCommandIr

Communicates one LED event and one Command change and one IR Message

namespace Protocol
{
    struct LightEventCommandIr
    {
        LightEventBase   lightEvent;
        CommandBase      command;
        u32              irData;
    };
}



Protocol::LightEventColor

Communicates one LED event change with RGB value.

namespace Protocol
{
    struct LightEventColor
    {
        LightEventColorBase   lightEventColor;
    };
}



Protocol::LightEventColor2

Communicates two LED event change with RGB value.

namespace Protocol
{
    struct LightEventColor2
    {
        LightEventColorBase   lightEventColor1;
        LightEventColorBase   lightEventColor2;
    };
}



Protocol::LightModeDefaultColor

Sets the LED start mode with specifies the RGB value. The values are stored in the internal memory of the drone.

namespace Protocol
{
    struct LightModeDefaultColor
    {
        LightModeColorBase   lightModeDefaultColor;
    };
}



Protocol::LightModeDefaultColor2

Sets the two LED start mode with specifies the RGB value. The values are stored in the internal memory of the drone.

namespace Protocol
{
    struct LightModeDefaultColor2
    {
        LightModeColorBase   lightModeDefaultColor1;
        LightModeColorBase   lightModeDefaultColor2;
    };
}



PETRONE

  1. Intro
  2. Typedef
  3. DataType
  4. Definitions
  5. Base Structs
  6. Structs
  7. Structs - Light
  8. Firmware Update
  1. Intro
  2. DataType
  3. Definitions
  4. Structs
  5. Examples


Index