LCOV - code coverage report
Current view: top level - AP_Notify - ScriptingLED.cpp (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 11 0.0 %
Date: 2026-09-09 11:02:08 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /*
       2             :    This program is free software: you can redistribute it and/or modify
       3             :    it under the terms of the GNU General Public License as published by
       4             :    the Free Software Foundation, either version 3 of the License, or
       5             :    (at your option) any later version.
       6             : 
       7             :    This program is distributed in the hope that it will be useful,
       8             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
       9             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      10             :    GNU General Public License for more details.
      11             : 
      12             :    You should have received a copy of the GNU General Public License
      13             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      14             :  */
      15             : 
      16             : #include "AP_Notify/AP_Notify.h"
      17             : #include "ScriptingLED.h"
      18             : 
      19             : #if AP_SCRIPTING_ENABLED
      20             : 
      21             : ScriptingLED *ScriptingLED::_singleton;
      22             : 
      23           0 : ScriptingLED::ScriptingLED() :
      24           0 :     RGBLed(0, 255, 170, 85)
      25             : {
      26           0 :     if (_singleton != nullptr) {
      27           0 :         AP_HAL::panic("ScriptingLED must be singleton");
      28             :     }
      29           0 :     _singleton = this;
      30           0 : }
      31             : 
      32           0 : void ScriptingLED::get_rgb(uint8_t& red, uint8_t& green, uint8_t& blue)
      33             : {
      34           0 :     red = _red_curr;
      35           0 :     green = _green_curr;
      36           0 :     blue = _blue_curr;
      37           0 : }
      38             : 
      39             : #endif

Generated by: LCOV version 1.14