Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
MultimediaBoard::RGB Struct Reference

This struct serves as a container for RGB values, and provides a few overridden constructors for converting from hex to 8-bit RGB values. More...

#include <MultimediaBoard.h>

Public Member Functions

 RGB ()
 Construct a new RGB object.
 
 RGB (int iHex)
 Construct a new RGB object.
 
 RGB (double dRed, double dGreen, double dBlue)
 Construct a new RGB object.
 

Public Attributes

double dRed
 
double dGreen
 
double dBlue
 

Detailed Description

This struct serves as a container for RGB values, and provides a few overridden constructors for converting from hex to 8-bit RGB values.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2023-06-20

Constructor & Destructor Documentation

◆ RGB() [1/3]

MultimediaBoard::RGB::RGB ( )
inline

Construct a new RGB object.

Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2023-06-20
54 {
55 // Initialize all member variables.
56 this->dRed = 0;
57 this->dGreen = 0;
58 this->dBlue = 0;
59 }

◆ RGB() [2/3]

MultimediaBoard::RGB::RGB ( int  iHex)
inline

Construct a new RGB object.

Parameters
iHex- The three hexadecimal digit value containing the RGB values. 0xFFF == 255, 255, 255.
Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2023-06-20
70 {
71 this->dRed = ((iHex >> 16) & 0xFF);
72 this->dGreen = ((iHex >> 8) & 0xFF);
73 this->dBlue = (iHex & 0xFF);
74 }

◆ RGB() [3/3]

MultimediaBoard::RGB::RGB ( double  dRed,
double  dGreen,
double  dBlue 
)
inline

Construct a new RGB object.

Parameters
dRed- The red value of the LED panel. (0-255)
dGreen- The green value of the LED panel. (0-255)
dBlue- The blue value of the LED panel. (0-255)
Author
Eli Byrd (edbgk.nosp@m.k@ms.nosp@m.t.edu)
Date
2023-06-20
87 {
88 this->dRed = dRed;
89 this->dGreen = dGreen;
90 this->dBlue = dBlue;
91 }

The documentation for this struct was generated from the following file: