Browse Source

AP_Notify: remove code protected by PX4 defines, correct comments

master
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
0492635cbd
  1. 4
      libraries/AP_Notify/OreoLED_I2C.cpp
  2. 2
      libraries/AP_Notify/OreoLED_I2C.h
  3. 2
      libraries/AP_Notify/PixRacerLED.cpp
  4. 2
      libraries/AP_Notify/ToneAlarm.h

4
libraries/AP_Notify/OreoLED_I2C.cpp

@ -425,7 +425,7 @@ void OreoLED_I2C::boot_leds(void) @@ -425,7 +425,7 @@ void OreoLED_I2C::boot_leds(void)
}
}
// update_timer - called by scheduler and updates PX4 driver with commands
// update_timer - called by scheduler and updates driver with commands
void OreoLED_I2C::update_timer(void)
{
WITH_SEMAPHORE(_sem);
@ -440,7 +440,7 @@ void OreoLED_I2C::update_timer(void) @@ -440,7 +440,7 @@ void OreoLED_I2C::update_timer(void)
boot_leds();
}
// send a sync every 4.1s. The PX4 driver uses 4ms, but using
// send a sync every 4.1s. The driver uses 4ms, but using
// exactly 4ms does not work. It seems that the oreoled firmware
// relies on the inaccuracy of the NuttX scheduling for this to
// work, and exactly 4ms from ChibiOS causes syncronisation to

2
libraries/AP_Notify/OreoLED_I2C.h

@ -88,7 +88,7 @@ private: @@ -88,7 +88,7 @@ private:
OREOLED_PARAM_ENUM_COUNT
};
// update_timer - called by scheduler and updates PX4 driver with commands
// update_timer - called by scheduler and updates driver with commands
void update_timer(void);
// set_rgb - set color as a combination of red, green and blue values for one or all LEDs, pattern defaults to solid color

2
libraries/AP_Notify/PixRacerLED.cpp

@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
#include "PixRacerLED.h"
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_PX4_V4 || CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#ifndef HAL_GPIO_A_LED_PIN
#define HAL_GPIO_A_LED_PIN -1

2
libraries/AP_Notify/ToneAlarm.h

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* ToneAlarm PX4 driver
* ToneAlarm driver
*/
/*
* This program is free software: you can redistribute it and/or modify

Loading…
Cancel
Save