Commit Graph
62 Commits
Author SHA1 Message Date
David Sidrane 999982a033 Merge pull request #2803 from ksschwabe/master
Tone_Alarm: Added ability to use timer 1 and timer 8 for the tone alarm driver.
2015-09-03 06:06:04 -10: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
Karl Schwabe 85bf7c31ab HRT driver fix : Incorrect APBs for timers 5, 10 and 11. 2015-08-29 00:07:20 +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
ksschwabe b528e1f593 Added ADC channel definitions to the board_config.h file. This way new boards with different ADC channel sets can still use the Px4 adc.c driver. 2015-07-10 17:03:22 +02: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 1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07: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
Mark Whitehorn 9292c8f405 add interrupt latency printout command and mean/variance to interval performance counter 2014-12-24 14:06:05 -07: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
Lorenz Meier aa312f96f8 drivers: Fix compile warnings and non-standard performance counter names 2014-05-21 14:20:48 +02:00
Ash Charles e5508a1aa0 Add Gumstix AeroCore device
Based on the work of Andrew Smith [1], add board configuration and device
drivers to support the Gumstix AeroCore (previously Aerodroid) board [2]. The
AeroCore is an autopilot board based on a STM32F427 similar to the FMUv2.

[1] https://github.com/smithandrewc/Firmware
[2] https://store.gumstix.com/index.php/products/585/

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 09:41:41 -07:00
Lorenz Meier 37970c5828 hrt driver: Make a debug data array compiling condiditional on PPM debug, we are never accessing it in normal operation 2014-05-13 08:06:33 +02:00
Lorenz Meier fc54cc2d1f Merge pull request #839 from eneadev/patch-1
Update drv_hrt.c
2014-05-08 21:45:05 -07:00
Randy Mackay 9f2c4b7513 tone_alarm: add PARACHUTE_RELEASE_TUNE 2014-04-28 11:43:25 +02:00
eneadev e2989bc091 Update drv_hrt.c
TIM3 was not working properly with a custom application and I got it work changing TIM3 HRT_TIMER_POWER_BIT from RCC_APB2ENR_TIM3EN to RCC_APB1ENR_TIM3EN because on datasheet TIM3 is on APB1, I think that you should check also the others
2014-04-19 13:08:29 +02:00
Lorenz Meier 62c188408f Merge branch 'airspeed_scaling' of github.com:PX4/Firmware into testtest 2014-04-05 14:30:57 +02:00
Jonathan Challinger f1f9f452c0 tone_alarm: Added arming failure tone 2014-04-05 12:13:50 +02:00
Andrew Tridgell 6ea22c8c07 adc: publish system_power ORB topic from ADC 2014-04-05 12:11:07 +02:00
Lorenz Meier d940bdf7f6 Consistently making space for a maximum of 12 channels, 10 channels (including reference / temperature) are used / available right now 2014-03-17 17:02:10 +01:00
Lorenz Meier d5c857615b Pure formatting cleanup of drv_hrt.c, no code / functionality changes 2013-12-27 12:14:15 +01:00
Lorenz Meier db46672bc4 Paranoid PPM shape checking 2013-12-27 12:02:57 +01:00
Lorenz Meier a502332992 Greatly robustified PPM parsing, needs cross-checking with receiver models 2013-12-25 15:11:05 +01:00
Lorenz Meier 107bb54b33 Robustifiying PPM parsing 2013-12-23 20:38:09 +01:00
Lorenz Meier 9476ba522f PPM channel count detection is now using a more paranoid approach. 2013-12-20 08:48:51 +01:00
Andrew Tridgell b3f4b0a240 drv_hrt: added note on why an uninitialised hrt_call is safe 2013-12-10 11:40:51 +01:00
Andrew Tridgell 53f2dc8296 drv_hrt: added hrt_call_init() and hrt_call_delay() APIs
hrt_call_init() can be used to initialise (zero) a hrt_call structure
to ensure safe usage. The hrt_call_every() interface calls this
automatically.

hrt_call_delay() can be used to delay a current callout by the given
number of microseconds
2013-12-10 11:03:31 +01: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
px4dev 50cf1c01b7 Compile fix. 2013-08-14 22:29:36 -07:00
px4dev 33863165b2 Merge commit 'de749a3602423f5ee6ca56f3cf2dfff04e31ec6d' (kconfig-cleanup) into fmuv2_bringup 2013-08-14 21:23:00 -07: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 567f621754 Fix an issue with the pwm_servo driver when using one of the STM32 advanced timers. 2013-08-04 19:43:05 -07:00