Commit Graph

46 Commits

Author SHA1 Message Date
Daniel Agar d73d20bcce systemlib delete unused systemlib.h 2018-06-12 09:06:30 +02:00
githubDLG 563200fee6 fix rgbled On and Powersave value in read mode
fix rgbled On and Powersave value in read mode.
In read mode, the ENABLE and SHDN is in bit 4 and bit5, so we may need a 4bit left shift to get a correct value.
2018-06-06 08:19:18 +02:00
Daniel Agar ea3acb7121 cmake remove circular linking and reorganize
- px4_add_module now requires MAIN
 - px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Daniel Agar bb7466c596 move rgbled i2c address into driver 2018-03-14 14:38:40 -04:00
David Sidrane acb51aeda3 rgbled:Updated comment, removing reference to PX4FMUv1
Comment expressly referenced PX4FMUv1, but the EEPROM,
  could be used on any board.
2017-09-10 13:37:23 -04:00
Daniel Agar b70b8288b9 px4_includes cleanup incomplete list 2017-08-20 20:42:42 +02:00
Beat Küng 32cf540159 rgbled: make sure to load the params on startup 2017-03-12 00:08:35 +01:00
Beat Küng f22fc1c543 led: add breathe mode 2017-03-12 00:08:35 +01:00
Beat Küng 729486f992 rgbled: switch to new led uorb interface 2017-03-12 00:08:35 +01:00
Beat Küng 61c1f6a8ef rgbled: warnx -> PX4_WARN and NULL -> nullptr 2017-03-12 00:08:35 +01:00
Lorenz Meier c88c2c7276 RGB led: Fixed code style 2015-10-19 13:14:25 +02:00
Nate Weibley 04a7d19405 Add parameter to limit the maximum brightness of the RGB LED 2015-09-18 10:21:50 -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
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 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 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