mirror of https://github.com/ArduPilot/ardupilot
AP_Notify: remove code protected by PX4 defines, correct comments
This commit is contained in:
parent
002070ae9e
commit
0492635cbd
|
@ -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)
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* ToneAlarm PX4 driver
|
||||
* ToneAlarm driver
|
||||
*/
|
||||
/*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
|
|
Loading…
Reference in New Issue