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
8 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
Lucas De Marchi
da68612f4b
AP_BoardConfig: make error function public and static
...
So it can be used by other parts of the code calling px4_start_driver().
8 years ago
Lucas De Marchi
b17acfee12
Add aerofc support
...
Flight Controller board that comes on Intel Aero RTF Drone.
8 years ago
Andrew Tridgell
cf3db7560c
AP_BoardConfig: fixed AUAV21 board ID to not overlap with VRBrain boards
8 years ago
Andrew Tridgell
1989f31ae3
AP_BoardConfig: added AUAV21 board type
...
unfortunately this uses the same sensor types as the PHMini, which
means we can't auto-detect the difference between them.
8 years ago
Andrew Tridgell
67b97b21db
AP_BoardConfig: switched to always using in-tree sensors
8 years ago
Andrew Tridgell
08f770125e
AP_BoardConfig: moved optional sensor startup out of AP_BoardConfig
8 years ago
Andrew Tridgell
4f50d67790
AP_BoardConfig: added board type auto-detection
...
using SPI probing
8 years ago
Andrew Tridgell
73122adb78
AP_BoardConfig: removed unused startup functions for Pixracer
8 years ago
Andrew Tridgell
e7a9de9b41
AP_BoardConfig: use in-tree drivers for PH2SLIM
8 years ago
Andrew Tridgell
b0b93f8928
AP_BoardConfig: switch pixracer to always use in-tree drivers
8 years ago
Andrew Tridgell
88e24dd8bd
AP_BoardConfig: added board type 103
...
for PH2 in-tree drivers
8 years ago
Andrew Tridgell
b9e1490740
AP_BoardConfig: added px4io auto-update to AP_BoardConfig
8 years ago
Andrew Tridgell
7e803df221
AP_BoardConfig: startup core peripherals for PX4
8 years ago
Andrew Tridgell
ce174489c3
AP_BoardConfig: added get_board_type() for PX4
...
used to decide what drivers to start
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
9 years ago
Andrew Tridgell
7bf81c44b0
AP_BoardConfig: allow programmatic setting of default safety mask
9 years ago
LukeMike
38150a5544
AP_BoardConfig: defined and managed VRBRAIN board type and all functions for sensors startup
9 years ago
Andrew Tridgell
38ebe582cc
AP_BoardConfig: fixed for VRBrain build
...
needs access to driver start function
9 years ago
Andrew Tridgell
77bee322e9
AP_BoardConfig: support the PHMINI as BRD_TYPE=5
9 years ago
Andrew Tridgell
61e15af3ca
AP_BoardConfig: added BRD_TYPE
...
this allows for PH2SLIM support with BRD_TYPE=6
9 years ago
Andrew Tridgell
7806aa4274
AP_BoardConfig: moved optional sensors to the sensor startup
...
this makes startup much faster
9 years ago
Andrew Tridgell
36e0c7229a
AP_BoardConfig: implement PX4 driver start in C++
...
this brings driver startup into AP_BoardConfig, so we can start to
make driver startup depend on parameters
9 years ago
Andrew Tridgell
4643d6f314
AP_BoardConfig: break out PX4 setup from main code
...
refactoring in preparation for larger changes
9 years ago
Andrew Tridgell
e82384990d
AP_BoardConfig: moved px4 variables to px4 structure
...
refactoring in preparation for larger changes
9 years ago
LukeMike
024d3311b3
VRBRAIN / AP_BoardConfig: enabled PWM configuration and safety management for all VirtualRobotix boards
9 years ago
Pavel Kirienko
accf118e38
UAVCAN hardpoint control
9 years ago
Andrew Tridgell
45c72eb442
AP_BoardConfig: added BRD_IMU_TARGTEMP
...
set target temperature for IMU
9 years ago
Michael du Breuil
4d964fbf2f
AP_BoardConfig: allow channels to be moved regardless of safety switch
9 years ago
Lucas De Marchi
235d64b7b9
AP_BoardConfig: replace header guard with pragma once
9 years ago
Andrew Tridgell
36177526cf
AP_BoardConfig: allow setting of SBUS output frame rate
9 years ago
Andrew Tridgell
2ffabe9e05
AP_BoardConfig: fixed PX4v1 build
10 years ago
Andrew Tridgell
c334bd0ddf
AP_BoardConfig: added BRD_CAN_ENABLE option
...
this allows uavcan to be enabled/disabled at boot. When it is disabled
we save about 25k of memory, allowing for more options for things like
multiple EKF
10 years ago
Gustavo Jose de Sousa
c16b46fd23
AP_BoardConfig: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Tom Pittenger
457d3be4d7
AP_BoardConfig: add user-defined serial number
...
new param: BRD_SERIAL_NUM
// @Description : User-defined serial number of this vehicle, it can be any arbitrary number you want and has no effect on the autopilot
// @Range : -32767 to 32768 (any 16bit signed number)
10 years ago
Andrew Tridgell
e43fe520e8
AP_BoardConfig: added BRD_SBUS_OUT parameter
...
when this is set to 1 it enables SBUS servo output on the SBUS
connector.
10 years ago
LukeMike
fa4fffc878
VRBRAIN: deleted unnecessary customizations
11 years ago
Emile Castelnuovo
39d9e93904
AP_BoardConfig: added #defines for VRBRAIN board
11 years ago