Commit Graph

48 Commits

Author SHA1 Message Date
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
Daniel Agar 7a9427bc34 param remove empty @unit 2016-03-14 09:12:34 +01:00
Daniel Agar 0ab44ad8f6 rgbled param @unit 2016-03-14 09:10:29 +01:00
Lorenz Meier c88c2c7276 RGB led: Fixed code style 2015-10-19 13:14:25 +02:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
Lorenz Meier 6ef94e0dfb Merged master into cmake-2 2015-09-20 10:33:39 +02:00
Nate Weibley 90894530e1 Fix POSIX build 2015-09-18 10:55:39 -04:00
Nate Weibley 04a7d19405 Add parameter to limit the maximum brightness of the RGB LED 2015-09-18 10:21:50 -04:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04: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
Mark Charlebois 190814bc97 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/drivers/rgbled/rgbled.cpp
	src/modules/commander/PreflightCheck.cpp
	src/modules/commander/airspeed_calibration.cpp
	src/modules/commander/calibration_routines.cpp
	src/modules/commander/gyro_calibration.cpp
	src/modules/commander/mag_calibration.cpp
	src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Mark Charlebois 7390f50b67 Posix: cleanup of bad file rename
Deleted obsolete file and fixed renaming of wqueue_start_posix.cpp

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-27 12:21:00 -07:00
Lorenz Meier d326106980 RGB led: Let user know we just did not find one 2015-04-27 09:07:53 +02:00
Mark Charlebois d913ec8dc9 Changed device::px4_device_handle_t to device::file_t
This change allowed the _posix.cpp file changes to be merged
back into the original files.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 17:49:35 -07:00
Mark Charlebois f3b5076d70 Linux to posix conversion
Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.

There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 09:53:09 -07:00
Mark Charlebois 0b649204b0 Make nuttx the default PX4_TARGET_OS
This should make the CI builder happy again.

Also fixed another itdef that should have been ifeq

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 14:35:56 -07:00
Mark Charlebois dc52bb7703 Linux: Added support for drivers/rgbled
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -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
Lorenz Meier 8071186e37 RGB led driver: More retries on boot 2015-02-15 19:52:01 +01:00
Lorenz Meier f0ad98c92c RGB led: Code style and comment on bus speed 2015-02-13 09:13:23 +01:00
Lorenz Meier 2bf0092282 RGB Led: move to 0 based index 2015-02-09 22:56:22 +01:00
Lorenz Meier e51f72000b Fix RGB led stop command 2014-12-01 11:27:59 +01:00
Lorenz Meier ca98070f8b RGBLED: flash efficiency 2014-07-16 15:18:07 +02:00
Lorenz Meier 51658ac857 Compile fix 2014-03-17 14:37:32 +01:00
Lorenz Meier 9cdb416d3a Teach RGB led driver to forward unknown IOCTLs 2014-03-17 14:32:36 +01:00
Lorenz Meier 9c355d280e Merged beta into mavlink rework branch 2014-01-28 15:13:14 +01:00
Andrew Tridgell 14e2464fab rgbled: don't try the same bus twice
on PX4v1 the external I2C bus is the same as the LED bus
2013-10-19 11:42:46 +02:00
Andrew Tridgell e3fe443720 rgbled: fixed getopt() handling
this allows the -a option to be used, for example
  rgbled -a 0x55 start
2013-10-19 11:42:33 +02:00
Andrew Tridgell dbb49c035b rgbled: fixed detection of device on PX4v1
There is a serial EEPROM on the PX4IOv1 board that answers on I2C
address 0x55. We need some extra I2C transfers to ensure we are
talking to a real RGBLED device.
2013-10-19 11:42:19 +02:00
Lorenz Meier fbe595a591 Fixed some stupid compile errors 2013-10-14 23:10:12 +02:00
Lorenz Meier c6b58491bb Work queue in RGB driver without work_cancel() 2013-10-14 22:18:44 +02:00
Anton Babushkin 09452805b1 rgbled: copyright updated 2013-09-19 18:46:35 +02:00
Anton Babushkin a012d5be82 rgbled: more cleanup 2013-09-19 18:13:11 +02:00
Anton Babushkin f2d5d008a6 rgbled: major cleanup and bugfixes 2013-09-19 11:33:04 +02:00
Buzz c12955fbc0 the "rgbled rgb X X X" command was broken, and would set green when you asked for red, and blue when you asked for green, and never set red. - off by 1 error in parameter numbering. 2013-09-10 13:32:32 +10:00
Julian Oes 9bcfe49cff Changed RGBLED behaviour, breathe mode when disarmed and ready to arm 2013-08-29 16:45:33 +02:00
Lorenz Meier 871b4c19bc Added stop command to RGB led 2013-08-19 15:19:51 +02:00
Lorenz Meier e597f97982 Merged master 2013-08-18 12:04:07 +02:00
Lorenz Meier 64145252d4 Added dim RGB implementation 2013-08-17 15:46:34 +02:00
Julian Oes af3e0d459a Add pattern ioctl for RGBLED 2013-08-16 18:04:24 +02:00
Julian Oes 0fe612e843 Simplified the RGBLED driver 2013-08-16 13:04:57 +02:00
Julian Oes 901cef922c Some cleanup for the RGB LED driver, added ioctl to set color 2013-08-15 17:43:01 +02:00
Julian Oes 29d7836784 RGBled fixes: options and off after rgb working now 2013-08-14 15:03:52 +02:00
Andrew Tridgell 3b10f8431d rgbled: try expansion bus first, unless specific bus given
this will allow "rgbled start" to detect which bus the LED is on,
supporting boards with either external or internal LEDs
2013-08-14 15:02:35 +02:00
Andrew Tridgell 21a919d973 rgbled: added LED_MODE_RGB to allow for constant RGB values
this allows apps to fully control the 3 LED elements
2013-08-14 15:02:15 +02: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
px4dev 03a15bfdc5 Fix argument parsing in the rgbled command. 2013-07-03 22:23:01 -07:00
px4dev 2557f0d2de Rename the 'device' directory back to 'drivers', it's less confusing that way.
Move the fmuv2 board driver out into the new world.
2013-04-06 23:04:32 -07:00