Commit Graph
43 Commits
Author SHA1 Message Date
David Sidrane ddb9bc3242 Honor micro hal 2016-12-21 08:34:20 +01:00
David Sidrane 4d17467590 Interim fix avoid using params before initialized
This is a Interim fix to avoid using params before initialized.

The Long term fix will be:
1) Not play the startup tone on start but allow tones to be generated from other invocations (i.e error conditions)
2) Add a command to tone alam to have it read a parameter, after parameter initialization, in the init script. If that parameter is on then sound the startup tone and further tones will be enabled. If it is off all further tones will be disabled.

The new parameter will not be of the class circuit breaker (not named ) as is is not an absolute control of the tone alarm.
2016-12-20 14:16:04 +01:00
Henry Zhang 53b4996379 MindPX: Use TIM14 CH1 for tone alarm output. 2016-10-29 10:56:32 +02:00
Julian Oes 8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Dennis Shtatnov 83105fca95 CF2: Buzzer 2016-09-19 11:54:53 +02:00
Beat Küng 8a12dee125 cmake: remove all module.mk files & cmake conversion script (#4918)
It seems these files are leftovers.
2016-06-28 09:26:36 +02:00
Lorenz Meier 7398164fcc Updated PX4 use / API of low level GPIO and other hardware-centric system facilities 2016-05-28 14:56:17 +02:00
jgoppert 06472861ce Added buzzer circuit breaker. 2015-10-25 13:38:30 +01:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Lorenz Meier 7465a649c3 STM32 driver: Fix code style 2015-09-06 12:07:10 +02:00
ksschwabe 6b7fe11c2e Tone_alarm: added checking to make sure HRT and Tone_alarm on different timers. 2015-09-03 17:52:57 +02:00
ksschwabe 9f300e054d Added ability to use timer 1 and timer 8 for the tone alarm driver. 2015-09-03 11:03:11 +02:00
ksschwabe fb2082e6ae Introduce new variable for TONE_ALARM_CLOCK_POWER_REG to account for timers being on different APBs 2015-08-26 11:03:32 +02:00
ksschwabe 5b659407a6 Bug fix: Incorrect APBs used in HRT driver and tone alarm driver. 2015-08-25 17:24:11 +02:00
Mark Charlebois a589d15c52 Refactored debug() and log() in CDev
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.

Changed to macros that preserve the output format.  Uses new macro that
can be used to implement per object, runtime selectable logging

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:07:06 -07:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier 21ca431131 Tone alarm: Add home set tune 2015-06-15 17:28:05 +02:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Johan Jansen c5a178a777 Commander: Play startup tune if preflight checks are good, play alarm otherwise 2015-04-20 09:14:12 +02:00
NosDE 5fddb89c3e mkblctrl - rework and bugfix 2015-02-18 16:55:05 +01:00
Lorenz Meier e90f00aaf1 STM32 drivers: move to 0 based index 2015-02-09 22:56:23 +01:00
Lorenz Meier c0f34dff26 STM32 drivers: Optimize for size 2014-11-15 13:51:33 +01:00
Randy Mackay 2d4dd0d5c0 Tone alarm sound for barometer check fail 2014-08-01 09:24:07 +02:00
Randy Mackay e6594e5192 tone_alarm: add EKF_WARNING tune
Conflicts:
	mavlink/include/mavlink/v1.0
2014-07-23 06:30:32 +02:00
Randy Mackay 9f2c4b7513 tone_alarm: add PARACHUTE_RELEASE_TUNE 2014-04-28 11:43:25 +02:00
Jonathan Challinger f1f9f452c0 tone_alarm: Added arming failure tone 2014-04-05 12:13:50 +02:00
Randy Mackay 642081ddfe tone_alarm: add GPS warning tone 2013-09-27 13:34:25 +02:00
Randy Mackay f4abcb51a1 tone_alarm: add #define for device path 2013-09-16 07:21:31 +02:00
Jean Cyr 54644e4206 Allow tone_alarm cmd to take filename as parameter
- Restore ability to play beloved William Tell Overture... from file
2013-08-31 16:06:15 -04:00
Jean Cyr b80f0d46ae Allow tone_alarm cmd to use tone names as well as number
- remove script dependency on hard coded tone numbers
- fix bug restarting repeating tone after stop
2013-08-31 01:03:32 -04:00
Jean Cyr f246b68c7b Fix parameter range check 2013-08-30 20:24:14 -04:00
Jean Cyr efca6f2cb1 Remove unused tones and save about 6K flash space
- Comment out unused tones
- Create symbolic tone numbers rather than hardcoded
2013-08-30 20:12:35 -04:00
Julian Oes ca96140b21 Allow the tone alarms to be interrupted 2013-08-22 15:53:46 +02:00
Julian Oes 1d7b8bb565 Somehow alarm 14 didn't always work 2013-08-16 18:03:04 +02:00
Julian Oes 56575eb068 Merge remote-tracking branch 'px4/new_state_machine_drton' into fmuv2_bringup_new_state_machine_drton
Conflicts:
	src/drivers/blinkm/blinkm.cpp
	src/drivers/px4io/px4io.cpp
	src/modules/commander/state_machine_helper.c
	src/modules/px4iofirmware/protocol.h
	src/modules/px4iofirmware/registers.c
	src/modules/systemlib/systemlib.h
	src/systemcmds/reboot/reboot.c
2013-08-15 14:04:46 +02:00
Lorenz Meier aebdd6e059 Merged master 2013-08-14 22:53:42 +02:00
px4dev de749a3602 Stop expecting CONFIG_HRT_anything since we aren't baking it into the NuttX config anymore. 2013-08-13 00:34:41 -07:00
px4dev 9d6ec6b365 Restructure things so that the PX4 configs move out of the NuttX tree, and most of the PX4-specific board configuration data moves out of the config and into the board driver.
Rename some directories that got left behind in the great board renaming.
2013-08-02 22:34:55 -07:00
Julian Oes 88389ea255 Merge branch 'master' into new_state_machine
compiling again
Conflicts:
	src/modules/fixedwing_att_control/fixedwing_att_control_att.c
	src/modules/fixedwing_att_control/fixedwing_att_control_rate.c
	src/modules/fixedwing_pos_control/fixedwing_pos_control_main.c
	src/modules/mavlink/orb_listener.c
	src/modules/multirotor_att_control/multirotor_attitude_control.c
	src/modules/multirotor_att_control/multirotor_rate_control.c
	src/modules/systemlib/pid/pid.c
	src/modules/systemlib/pid/pid.h
	src/modules/uORB/objects_common.cpp
2013-07-08 10:31:32 +02:00
px4dev b4029dd824 Pull v2 pieces up to build with the merge 2013-07-07 17:53:55 -07:00
Julian Oes 2096da2d4d Don't interrupt a playing tune unless its a repeated one 2013-06-25 13:11:15 +02:00
Lorenz Meier 4db739b5e1 Integration WIP with current NuttX version 2013-06-01 01:48:42 +02:00
Lorenz Meier f57439b90e Moved all drivers to new world, PX4IO completely in new world 2013-04-28 01:30:14 +02:00