David Sidrane
526f07b527
gpio_led:Define GPIO_MAX_SERVO_PIN down to 4
...
Support boards with less than 6 (GPIO_SERVO_n) where
n is now 16..4
2017-09-29 10:13:51 -04:00
David Sidrane
1e0489f48b
PX4 System gpio_led:Code cleanup
...
Use PX4 log and module documantation
Fixed memory leaks
2017-09-10 13:37:23 -04:00
David Sidrane
8c8ea0754a
PX4 System gpio_led:Removed FMUv1
2017-09-10 13:37:23 -04:00
David Sidrane
0bb0e92378
gpio_led removed dependancy on CONFIG_ARCH_BOARD_xxxx
...
The gpio leg can use either the FMU GPIO_SERVO (Aux Pins)
or the FMUv1 style IO pins.
We define either LED_ON_SERVO_GPIO or LED_ON_EXT_GPIO_AND_PIO
based on if the board_config provides GPIO_SERVO_1 or
GPIO_EXT_1.
For LED_ON_SERVO_GPIO we further define GPIO_MIN_SERVO_PIN and
the GPIO_MAX_SERVO_PIN based on the highest GPIO_SERVO_x provided
by the board_config
When base the ability to use the PX4PIO not in the existance of
the path but on the define BOARD_USES_PX4PIO
2017-01-21 11:45:36 +01:00
David Sidrane
cc0a4248f8
PX4 System changes for new Boards
2016-12-21 08:34:22 +01:00
David Sidrane
c042f49fde
System Changes for AUAV X2.1
2016-11-28 09:18:45 +01: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
Julian Oes
32c3135788
commander: move battery calculations to systemlib
...
The commander used to consume the battery_status topic and write the
contents after some calculations into the system state. Instead, the
calculations now happen in library calls in systemlib/battery.
This moves the battery fields out of the vehicle_status message into the
battery_status topic.
This brought quite some changes in all modules that need battery
information. The current state is compiling but untested.
2016-04-11 18:01:47 +02:00
Felix Hu
bd580e09bf
supports MindPXv2 borad which is a product from AirMind.
2016-03-30 19:45:39 +02:00
David Sidrane
a67097731a
Renamed pax4fmu-v3 to pax4fmu-v4
2015-11-28 09:13:15 +01:00
David Sidrane
30bc968ed6
Ran Astyle
2015-11-28 09:13:15 +01:00
David Sidrane
09f83e78e5
Support PX4IO_DEVICE_PATH not defined
2015-11-28 09:13:15 +01:00
Lorenz Meier
fa5071b3c5
Remove module.mk files to prevent confusion of adopters upgrading
2015-10-06 11:23:20 +02:00
James Goppert
1d6b31d196
Switch to cmake build system.
2015-09-07 20:37:45 -04:00
Daniel Agar
8aae66b893
trivial code style cleanup round 2
2015-03-27 23:38:58 -04:00
Lorenz Meier
5c3f4d2194
GPIO led: Do not allocate memory statically, but only when module loads
2015-03-08 07:49:00 +01:00
Lorenz Meier
54fc6aa678
Hotfix: Optimize shell commands for size - we do not need massive performance there
2014-08-13 10:33:46 +02:00
Don Gagne
2448e2adbc
More tab fixes
2014-06-29 13:55:55 -07:00
Don Gagne
f0558a97dd
Use same warnx/exit pattern
2014-06-29 12:53:59 -07:00
Don Gagne
d5b5dcef24
Fix bugs found through compiler warnings
2014-06-29 12:01:43 -07:00
Anton Babushkin
e0ed0625f8
commander: failsafe_state removed, replaced with bool failsafe, navigation state and failsafe determined directly from main state and conditions
2014-06-16 17:34:21 +02:00
Anton Babushkin
bc36b540a5
gpio_led: code style fixed
2014-03-13 00:25:00 +04:00
Anton Babushkin
6f55077541
gpio_led: bugs fixed
2014-03-13 00:24:28 +04:00
Anton Babushkin
4b567ef631
gpio_led: bugs fixed, PX4FMUv2 support added
2014-02-11 23:59:02 +01: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
2f76c81147
More compile fixes
2013-07-16 09:08:05 +02:00
Julian Oes
1b38cf715d
Renamed actuator_safety back to actuator_armed, compiling but untested
2013-07-15 22:15:15 +02:00
Lorenz Meier
bf2ff98856
Merged master
2013-07-15 15:02:45 +02:00
Jean Cyr
897b541b12
General cleanup of /dev/px4io and /dev/px4fmu
...
- Use distinct common symbols for px4io and px4fmu device files, and use
instead of hardcoded filenames
- Use common symbols defining px4io bits consistently between px4fmu and
px4io builds.
2013-07-09 20:37:00 -04:00
Anton Babushkin
369e6d1eea
gpio_led: minor usage fix
2013-07-06 18:37:02 +04:00
Anton Babushkin
8d0784af61
gpio_led: PX4IO RELAY and ACC outputs support, some fixes
2013-07-06 18:30:09 +04:00
Julian Oes
90f5e30f2a
Introduced new actuator_safety topic
2013-06-14 13:53:26 +02:00
Julian Oes
ec08dec8ba
Two hacks here to make it compile
2013-06-12 12:47:00 +02:00
Lorenz Meier
68931f38d5
HOTFIX: Added start / stop syntax to GPIO led command
2013-06-05 15:04:49 +02:00
Anton Babushkin
6e8621269b
Code style fixed
2013-05-22 13:59:51 +04:00
Anton Babushkin
09ce3e2d0a
Added GPIO_EXT1/GPIO_EXT2 selection.
2013-05-22 11:30:50 +04:00
Anton Babushkin
9a9e41f7a2
Merge branch 'master' into gpio_led
2013-05-09 22:41:09 +04:00