CTRE Phoenix C++ 5.36.0-beta-1
Loading...
Searching...
No Matches
FireAnimation.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
5
6namespace ctre {namespace phoenix {namespace led {
7
8/**
9 * Animation that looks similarly to a flame flickering
10 *
11 * @deprecated This device's Phoenix 5 API is deprecated for removal in the
12 * 2027 season. Users should update to Phoenix 6 firmware and migrate to the
13 * Phoenix 6 API. A migration guide is available at
14 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html.
15 *
16 * If the Phoenix 5 API must be used for this device, the device must have 22.X
17 * firmware. This firmware is available in Tuner X after selecting Phoenix 5 in
18 * the firmware year dropdown.
19 */
20class [[deprecated("This device's Phoenix 5 API is deprecated for removal in the 2027 season."
21 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
22 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
24public:
25 /**
26 * Constructor for a FireAnimation
27 * @param brightness How bright should the animation be [0, 1]
28 * @param speed How fast will the flame be processed at [0, 1]
29 * @param numLed How many LEDs is the CANdle controlling
30 * @param sparking The rate at which the Fire "Sparks" [0, 1]
31 * @param cooling The rate at which the Fire "Cools" along the travel [0, 1]
32 * @param reverseDirection True to reverse the animation direction, so instead of fire going "away" from the CANdle, it will go "toward" the CANdle.
33 * @param ledOffset Where to start the animation
34 */
35 FireAnimation(double brightness = 1, double speed = 1, int numLed = -1, double sparking = 1, double cooling = 1, bool reverseDirection = false, int ledOffset = 0);
36 /**
37 * Sets the sparking value of the FireAnimation
38 * @param sparking The rate at which the Fire "Sparks" [0, 1]
39 */
40 void SetSparking(double sparking);
41 /**
42 * Sets the cooling value of the FireAnimation
43 * @param cooling The rate at which the Fire "Cools" [0, 1]
44 */
45 void SetCooling(double cooling);
46};
47
48} // namespace led
49} // namespace phoenix
50} // namespace ctre
The base class for one generic type of animation.
Definition BaseStandardAnimation.h:24
Animation that looks similarly to a flame flickering.
Definition FireAnimation.h:23
FireAnimation(double brightness=1, double speed=1, int numLed=-1, double sparking=1, double cooling=1, bool reverseDirection=false, int ledOffset=0)
Constructor for a FireAnimation.
void SetCooling(double cooling)
Sets the cooling value of the FireAnimation.
void SetSparking(double sparking)
Sets the sparking value of the FireAnimation.
WPI Compliant Pigeon class.
Definition PigeonIMU_StickyFaults.h:6