Lucas De Marchi
9463dbb408
AP_Notify: add static create method
2017-09-26 03:01:21 +01:00
Andrew Tridgell
697131e94a
AP_Notify: support dual I2c toshiba LEDs
...
This restructures AP_Notify to allow for multiple backends of the same type.
2017-09-11 10:39:39 -07:00
Randy Mackay
0d5c98ad45
AP_Notify: add gps glitch notification
2017-07-27 14:16:23 +09:00
Peter Barker
eb1f22fc67
AP_Notify: add singleton
2017-07-09 17:17:29 -04:00
Matt
34d305083d
AP_Notify: Complete rework of notify device selection
...
Jaime did the hard work on this one. He reworked notify device
selection to take place on init rather than on compile like before. The
notify decivces are mostly set on compile using preprocessor directives
based on board type. I created NTF_OREO_THEME. This will allow the
user to enable/disable the OreoLED driver. And it also allows you to
select between aircraft and rover lighting themes. This allows the Solo
to use the OreoLEDs, and doesn't waste the memory on vehicles not
equipped with Oreo LEDs. The OreoLED driver is restricted to Pixhawk 2
FCs by proprocessor directive due to memory constraints. So it will
never work by accident on another board.
There is also a new notify flag for GPS Fusion. This flag is true when
the EKF is happy with the GPS, actively using it for position
information.
2017-06-06 12:58:28 +09:00
Peter Barker
d170396acf
Notify: Display: blank text line after 10s
2017-02-27 09:02:09 +09:00
Jacob Walser
f3fa8403f8
AP_Notify: Add tone and light pattern for leak detection
2017-02-21 11:26:14 +11:00
Randy Mackay
cb1d1df03a
AP_Notify: reorder flags
...
This tiny improvement allows the flags above battery voltage to be squeezed into the same byte
2017-01-23 15:07:20 -08:00
Randy Mackay
e085ae1ec8
AP_Notify: add set_flight_mode_str method
...
This allows the vehicle code to set a short string for the flight mode
2017-01-23 15:07:20 -08:00
Randy Mackay
682fc759f1
AP_Notify: minor formatting and comment changes
...
No functional change
2017-01-23 15:07:20 -08:00
Randy Mackay
d12e0d6a82
AP_Notify: Display send_text made not static
2017-01-23 15:07:20 -08:00
Randy Mackay
c5ba54c3fe
AP_Notify: adjust Display class structure
...
This makes the display architecture closer to our other frontend/backend splits
Added check that display is initialised successfully in hw_init
Renamed _update_timer to just _timer to make more consistent with other drivers
2017-01-23 15:07:20 -08:00
kozinalexey
ed4115c4e3
AP_Notify: Support for OLED display by Alexey Kozin
2017-01-23 15:07:20 -08:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Andrew Tridgell
7fe1c58575
AP_Notify: added handling of PLAY_TUNE message
2016-07-22 15:00:17 +10:00
Andrew Tridgell
c471b635b3
AP_Notify: added NTF_LED_OVERRIDE parameter
...
when this is set the board RGB LED will be controlled by MAVLink
instead of internally. This is useful for cases where the LED patterns
and colours needed are specified by an external authority (such as the
OBC organisers)
2016-07-19 13:37:13 +10:00
Andrew Tridgell
26ef71e130
AP_Notify: added tuning error tones
2016-05-28 17:33:30 +10:00
Andrew Tridgell
3e75fc4f3d
AP_Notify: improved tones for AP_Tuning
2016-05-09 17:24:38 +10:00
Andrew Tridgell
9cd4f8a856
AP_Notify: added tones for tuning stages
2016-05-07 18:34:13 +10:00
Jonathan Challinger
a7f959e6f9
AP_Notify: add ToneAlarm_PX4_Solo
2016-04-21 10:05:36 +10:00
Jonathan Challinger
d2ca2d2e0e
AP_Notify: change OREOLED config to ifdef
2016-04-21 10:04:37 +10:00
Jonathan Challinger
dba55182af
AP_Notify: add flags.powering_off
2016-04-21 10:04:37 +10:00
pepevalbe
c9862b1502
AP_Notify: New parameter to enable/disable buzzer
2016-04-14 08:59:06 +09:00
Paul Riseborough
1e8af3dea4
AP_Notify: Add tone sequence to alert user when throw detector is armed
...
Use a medium tempo ascending three tone sequence with sufficient gap to allow the throwing action to be completed without distraction.
2016-03-03 12:18:16 +09:00
Lucas De Marchi
5ba20b1763
AP_Notify: sanitize includes
...
Due to the way the headers are organized changing a single change in
an AP_Notify driver would trigger a rebuild for most of the files in
the project. Time could be saved by using ccache (since most of the
things didn't change) but we can do better, i.e. re-organize the headers
so we don't have to re-build everything.
2016-02-01 14:18:51 -02:00
mirkix
2457558624
AP_Notify: Add display support
2016-01-07 14:32:56 -02:00
mirkix
dee20a31f1
AP_Notify: Add gps_num_sats
2016-01-07 14:32:56 -02:00
pepevalbe
0d5e59eaa3
AP_Notify: configurable RGB LED brightness
2015-12-31 11:32:59 +09:00
José Roberto de Souza
63e1d0753e
AP_Notify: Add a new RGBLed implementation that works over RCOutput
...
To be used in boards that uses the same PWM chip to generate signal to
control motors and the status led.
2015-12-16 08:18:17 +11:00
Randy Mackay
872e6769b0
Notify: change firmware_update event to flag
2015-09-09 10:39:50 +09:00
Jonathan Challinger
28ee63c855
AP_Notify: add events.compass_cal_canceled
2015-09-03 16:59:11 +10:00
Jonathan Challinger
89007c13cb
AP_Notify: add compass_cal flags
2015-09-03 16:59:11 +10:00
Gustavo Jose de Sousa
6d667e19b1
AP_Notify: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:38:20 +10:00
Lucas De Marchi
1bba105be4
AP_Notify: don't manually define number of notify devices
...
Like b211b86
(AP_HAL_Linux: don't manually define number of spi devices)
did for spi.
2015-07-21 13:52:00 +09:00
Randy Mackay
2f8a7f316f
Notify: enable toshibaLED for NAVIO
2015-07-07 20:08:19 +09:00
Randy Mackay
608bb3d611
Notify: minor format fix
2015-04-27 12:10:17 +09:00
Randy Mackay
2472702838
Notify: rename lost_copter to vehicle_lost
2015-04-13 17:44:44 +09:00
Jaime Machuca
043d24f03a
Notify: add Lost Copter tone
2015-04-13 17:42:07 +09:00
Randy Mackay
0dc985a6ab
Notify: remove GPS glitch notification
2015-03-13 16:40:41 +09:00
Randy Mackay
8e8487c699
Notify: remove baro_glitch reporting
2015-03-13 16:40:23 +09:00
Randy Mackay
7675160e33
Notify: add firmware update flag and implement for OreoLED
2015-03-06 17:26:51 +09:00
Jace A Mogill
442d07a6c9
Notify: OreoLED fast startup with solid green
...
For manual flight modes: Solid white in front, red in rear
For automatic flight modes: Breathing white in front, red in rear
Loss of RC: Alternating red/black in front and rear
merge with fast green
2015-03-06 17:26:45 +09:00
Randy Mackay
f1ce70e748
Notify: disable oreoled by default
2015-03-02 16:58:14 +09:00
Randy Mackay
35a3a52f29
Notify: add support for handle_led_control
2015-03-02 16:58:06 +09:00
Randy Mackay
b8ef765b3e
Notify: add OreoLED to PX4
2015-03-02 16:57:56 +09:00
Randy Mackay
bd1ae13fdb
Notify: arming_failed flag moved to events
2015-02-03 06:14:53 +09:00
Randy Mackay
6a827459ad
Notify: increase size of flags type
2015-02-03 06:14:52 +09:00
Emile Castelnuovo
26432d6064
AP_Notify: use RGB driver for board led in VRBRAIN boards.
2015-02-02 08:43:59 +11:00
Randy Mackay
d67b4a8d49
Notify: add pre_arm_gps_check flag
...
RGB LED will remain flashing blue when vehicle is disarmed and this
check has failed (i.e. false).
2014-12-26 12:32:34 +09:00
Randy Mackay
21beb26484
Notify: minor event reordering
...
No functional change
2014-12-15 14:10:26 +09:00
Randy Mackay
1c8ab375e2
Notify: rename failsafe_action event
2014-12-15 14:10:15 +09:00
Randy Mackay
972c8e47d2
Notify: rename notify_types to notify_flags_type
2014-12-15 14:10:10 +09:00
Randy Mackay
c75ab8f3e5
Notify: add comments re events
2014-12-15 14:09:15 +09:00
Jonathan Challinger
3dfcdde6be
AP_Notify: Rework ToneAlarm_PX4 to play tones from local array
2014-12-15 14:09:04 +09:00
Staroselskii Georgii
d40011acf3
AP_Notify: added abstract Led and RGBLed classes
2014-11-26 11:16:27 +11:00
bugobliterator
5d6af51517
AP_Notify:Add ToneAlarm Support for HAL_Linux Boards
2014-11-10 06:27:48 +11:00
Randy Mackay
d6890ce878
Notify: remove ToshibaLED support from APM
...
This saves about 1k of precious flash
2014-08-16 10:30:30 +09:00
Randy Mackay
ee6d4d570a
Notify: add baro_glitch flag
2014-07-28 22:16:18 +09:00
Randy Mackay
f24960f4c0
AP_Notify: add EKF failure warning
2014-07-22 23:13:27 +09:00
LukeMike
8f552d5758
VRBRAIN: Changed the management of VirtualRobotix's boards.
2014-06-19 11:27:38 +02:00
Kevin Hester
fce1277b0e
Notify: fixup line endings
2014-04-15 15:57:11 +09:00
Emile Castelnuovo
4ad83f3c8a
AP_Notify: new files and definitions for VRBRAIN board
2014-04-08 16:19:19 +10:00
Randy Mackay
e3e7fc284d
Notify: add parachute release tune for Pixhawk
2014-04-07 13:37:01 +09:00
Niels Joubert
64d4a1236f
AP_Notify: Support all GPS status flags, with status >= GPS_OK_FIX_3D notified as having a lock
2014-04-05 13:42:23 +11:00
Jonathan Challinger
f0fc0397d3
Notify: add arming failure tone
2014-03-31 20:34:27 +09:00
Randy Mackay
7bb981f2df
AP_Notify: correct dos formatting
2014-03-31 20:34:24 +09:00
Randy Mackay
aae18f9ead
AP_Notify: allow external leds to be disabled
2013-11-30 22:53:40 +09:00
Randy Mackay
1f0fb3f06b
AP_Notify: add Buzzer
2013-11-30 18:20:51 +09:00
Robert Lefebvre
d1cf9f949f
AP_Notify: ExternalLED library
2013-11-30 18:20:49 +09:00
Andrew Tridgell
dd081ab23b
AP_Notify: enable toshibaled on all I2C capable platforms
2013-09-28 22:04:15 +10:00
Randy Mackay
4bac26171b
AP_Notify: add gps_glitch flag
2013-09-24 21:41:22 +09:00
Andrew Tridgell
66ee484b3c
AP_Notify: convert to unix style file
2013-09-19 16:27:31 +10:00
Randy Mackay
d16587340d
AP_Notify: add PX4's tone_alarm
...
Sounds added for arming, disarming and low battery events
2013-09-15 17:24:00 +09:00
Randy Mackay
b3c636dfa3
AP_Notify: add radio and battery failsafe
...
radio and battery failsafe are slow flashing yellow
pre-arm check failure changed to double flashing yellow
2013-09-11 14:36:05 +09:00
Andrew Tridgell
495c4bbbbe
AP_Notify: simplify interface to avoid timers and external calls
...
this changes AP_Notify to use updates via notify.update() at 50Hz,
avoiding the need for the 1kHz timer. It also creates a parent class
for ToshibaLED so that the I2C and PX4 ToshibaLED drivers can be
abstracted out.
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2013-08-30 13:01:35 +10:00
Randy Mackay
a52b1831ca
AP_Notify: make flags static variable
2013-08-30 13:01:35 +10:00
Randy Mackay
b1278fa006
AP_Notify: early draft of library
2013-08-30 13:01:34 +10:00