Tom Pittenger
ab95c8e5ee
AP_BoardConfig: unify singleton naming to _singleton and get_singleton()
6 years ago
LukeMike
e15d2c0f89
HAL_ChibiOS: added ChibiOS configuration of VR Brain 5.4
6 years ago
LukeMike
33f7f5b7b6
HAL_ChibiOS: added ChibiOS configuration for VR Core 1.0
6 years ago
LukeMike
f615ab9a0a
HAL_ChibiOS: added ChibiOS configuration for VR Brain 5.1
6 years ago
Andrew Tridgell
8a8308df38
AP_BoardConfig: removed F4Light
6 years ago
LukeMike
a0a477795e
AP_BoardConfig: added reference to HAL ChibiOS Arch for VR Brain boards
6 years ago
Michael du Breuil
ba49e9e17c
AP_BoardConfig: Add safety option off
6 years ago
Andrew Tridgell
3a9d8448b1
AP_BoardConfig: added BRD_SD_SLOWDOWN parameter
...
allows for reduction in microSD clock speed
6 years ago
Michael du Breuil
6a41f0c86a
AP_BoardConfig: Add minimum board and servo voltage parameters
6 years ago
Kevin Lopez Alvarez
9f97172cce
AP_BoardConfig: add ChibiOS FMUv4pro defines
6 years ago
Andrew Tridgell
cd9179e733
AP_BoardConfig: fixed for 8 PWM outputs in IOMCU
6 years ago
Lucas De Marchi
73f8dd98f2
AP_BoardConfig: kill AP_FEATURE_SAFETY_BUTTON
...
This is redundant and can be just HAL_HAVE_SAFETY_SWITCH.
7 years ago
Lucas De Marchi
259195a7c7
AP_BoardConfig: fix handling of AP_FEATURE_SAFETY_BUTTON
...
Not all PX4-based board have a safety button. Rely on
HAL_HAVE_SAFETY_SWITCH instead of ifdef'ing each of them.
This allows to build for aerofc-v1 without safety button.
7 years ago
Andrew Tridgell
2a62938fb1
AP_BoardConfig: enable get_board_type() on all boards
...
return BOARD_TYPE_UNKNOWN for boards that don't use board detection
7 years ago
Peter Barker
59d1d8aecc
AP_BoardConfig: instantiate an RTC
...
AP_BoardConfig: set RTC from hw clock at startup
7 years ago
Andrew Tridgell
677b5f94b2
AP_BoardConfig: allow for non-bool BRD_IO_ENABLE
...
this will be used to avoid CRC checks for IO fw development testing
7 years ago
Andrew Tridgell
751f290be6
AP_BoardConfig: setup FMUv5 for board detection
7 years ago
Andrew Tridgell
99ca0ea913
AP_BoardConfig: moved BRD_PWM_COUNT to common code
...
this allows all boards to configure some PWM outputs as GPIOs
7 years ago
Eugene Shamaev
7a67c82026
AP_BoardConfig: HAL_RCINPUT_WITH_AP_RADIO definition
7 years ago
Andrew Tridgell
e2fa38968f
AP_BoardConfig: fixed build for some boards
...
for boards that don't have board detection but do have a safety switch
this fixes the build
7 years ago
Andrew Tridgell
60f79921ac
AP_BoardConfig: added get_safety_mask()
7 years ago
Andrew Tridgell
57c307a74e
AP_BoardConfig: fixed default pwm count
...
for boards without the parameter we should use 16, meaning all channels
available
thanks to sh83 for noticing
7 years ago
kozinalexey
db6c6b1677
AP_BoardConfig: allow PWM count setting on all chibios boards
7 years ago
Andrew Tridgell
d8abf647e8
AP_BoardConfig: added BRD_SAFETYOPTION parameter
...
allow control of safety button behaviour
7 years ago
Andrew Tridgell
f7ec2618a3
AP_BoardConfig: added SP01 board type
7 years ago
Andrew Tridgell
682dcb65cf
AP_BoardConfig: added param helper for HAL parameters
...
only for HAL_REVOMINI for now
7 years ago
Andrew Tridgell
3afaf81ccc
AP_BoardConfig: added param object for AP_Radio
7 years ago
LukeMike
6b820ac9e4
VRBRAIN / AP_BoardConfig: added VR Brain define into px4_board_type enum
7 years ago
Andrew Tridgell
f8a3b0e753
AP_BoardConfig: improved board config
...
use hwdef.dat to enable RTSCTS and SBUS_OUT
7 years ago
Andrew Tridgell
ff87d27143
AP_BoardConfig: fixed return of get_pwm_count()
...
thanks to Michael for noticing
7 years ago
Andrew Tridgell
5458377e67
AP_BoardConfig: support MindPX-v2
7 years ago
Andrew Tridgell
02c3bea5a5
AP_BoardConfig: support ChibiOS FMUv4
7 years ago
Andrew Tridgell
82cc36d6d0
AP_BoardConfig: called board_setup() even without autodetect
...
we need to init hal.rcou and hal.gpio
7 years ago
Andrew Tridgell
b1ebbd1a1c
AP_BoardConfig: enable auto-detect only on FMUv3
...
F412 should not do board detection
7 years ago
Andrew Tridgell
60b1eab06d
AP_BoardConfig: added get_pwm_count()
7 years ago
Andrew Tridgell
13f4780815
AP_BoardConfig: make a singleton
...
allows for io_enabled() static function
7 years ago
Andrew Tridgell
accac344f2
AP_BoardConfig: support ChibiOS as well as NuttX
...
allow for board detection with ChibiOS
7 years ago
Andrew Tridgell
a4d2d79ce7
AP_BoardConfig: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Lucas De Marchi
ef3edc531c
AP_BoardConfig: add static create method
7 years ago
Kevin Lopez Alvarez
a5a5bd3a95
AP_BoardConfig: Remove comments and use correct board number
8 years ago
Kevin Lopez Alvarez
a51bf8c918
AP_BoardConfig: initial FMUv4pro support
8 years ago
Eugene Shamaev
a7921a273b
AP_BoardConfig: move of CAN parameters into separate group and support of several interfaces
8 years ago
Peter Barker
5c15c1e4d2
AP_BoardConfig: add public method returning true if on sensor error
8 years ago
Andrew Tridgell
9e74bfbc20
AP_BoardConfig: cope with bad config of pixhawk2
...
don't allow FMUv2 firmware on cube, and force temperature if incorrect
8 years ago
Andrew Tridgell
e32e2f5b5d
AP_BoardConfig: added sensor_config_error()
...
used to notify user of fatal sensor setup error
8 years ago
Andrew Tridgell
4c36c77db1
AP_BoardConfig: split setup of safety switch init init_safety()
...
this allows it to be called late, so that servo outputs are fully
setup before the safety is disabled when BRD_SAFETYENABLE=0
8 years ago
Eugene Shamaev
67a6e651d6
AP_BoardConfig: removal of legacy UAVCAN support
8 years ago
Lucas De Marchi
1adf247a60
AP_BoardConfig: fix board type number for aerofc
...
Types 7-12 are being used by vrbrain boards. Even if they are inside
another ifdef, they can't be the same because it's used by the BRD_TYPE
parameter. Use 13 for aerofc since it was already the one being used in
the parameter description.
Thanks to Michael du Breuil for noticing it.
8 years ago
Eugene Shamaev
0b54d5764c
AP_BoardConfig: support for CAN and UAVCAN at board level
8 years ago
Andrew Tridgell
c118deccb0
AP_BoardConfig: added BRD_IO_ENABLE parameter
...
allow for px4io to be disabled completely
8 years ago