CTRE Phoenix C++ 5.36.0-beta-1
Loading...
Searching...
No Matches
HsvToRgb.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5namespace phoenix {
6
7/**
8 * Class to convert Hue, Saturation, Value to Red, Green, Blue
9 */
10class HsvToRgb {
11public:
12 /**
13 * Converts HSV to RGB
14 * @param hDegrees hue value
15 * @param S saturation value
16 * @param V value Lightness value
17 * @param r pointer to red value
18 * @param g pointer to green value
19 * @param b pointer to blue value
20 *
21 * @deprecated The CANdle Phoenix 5 API is deprecated for removal in the
22 * 2027 season. Users should update to Phoenix 6 firmware and migrate to the
23 * Phoenix 6 API. A migration guide is available at
24 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html.
25 */
26 [[deprecated("The CANdle Phoenix 5 API is deprecated for removal in the 2027 season."
27 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
28 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
29 static void Convert(double hDegrees, double S, double V, float* r, float* g,
30 float* b);
31};
32
33}
34}
Class to convert Hue, Saturation, Value to Red, Green, Blue.
Definition HsvToRgb.h:10
static void Convert(double hDegrees, double S, double V, float *r, float *g, float *b)
Converts HSV to RGB.
WPI Compliant Pigeon class.
Definition PigeonIMU_StickyFaults.h:6