Andrew Tridgell
aa4cde1aae
AP_BoardConfig: work around issues with bad components on some FMUv4 boards
...
some pixracer copies have poor components which can cause sensor bus
brownout on boot. This resets the sensor bus for 20ms on boot to try
to get clean sensor startup
9 years ago
Andrew Tridgell
b9c4a948d1
AP_BoardConfig: fixed startup ordering change in canbus vs external mag
9 years ago
Andrew Tridgell
119e312cd3
AP_BoardConfig: wait up to 0.4s for safety to be off on boot
9 years ago
Grant Morphett
30bcea73cc
PX4: Added detection for MPU6000 on px4slim.
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
eaa88b1223
AP_BoardConfig: FMUv1 does not have pwm_input driver
9 years ago
Andrew Tridgell
39676d686c
AP_BoardConfig: FMUv1 does not have an L3GD20
9 years ago
Andrew Tridgell
7da89c611d
AP_BoardConfig: use a STATUSTEXT to show better in MP
...
this makes it easier to see why it won't boot
9 years ago
Andrew Tridgell
0d59935847
AP_BoardConfig: fixup for merge after VRBrain changes
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
7c5171e9b9
AP_BoardConfig: set default temperature on PH2 to 60
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
7ee8898948
AP_BoardConfig: updated defines for VRBRAIN
9 years ago
LukeMike
95ae69eb1c
VRBRAIN /AP_BoardConfig: changed definition of PWM_SERVO_MODE_12PWM only for VRBRAIN
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
Lucas De Marchi
913f88f2be
AP_BoardConfig: fix check for PX4_V4
...
When building for px4-v2 we have an warning because we are checking for
the value of this undefined macro. Just change both checks to use
"defined()".
../../libraries/AP_BoardConfig/AP_BoardConfig.cpp:36:7: warning: "CONFIG_ARCH_BOARD_PX4FMU_V4" is not defined [-Wundef]
#elif CONFIG_ARCH_BOARD_PX4FMU_V4
^
9 years ago
Luis Vale Gonçalves
334233d48f
AP_BoardConfig: fix spelling in parameter description
...
witch ->no
switch->yes
9 years ago
Andrew Tridgell
918c41b1e4
AP_BoardConfig: fixed IMU_TARGTEMP index
9 years ago
Andrew Tridgell
45c72eb442
AP_BoardConfig: added BRD_IMU_TARGTEMP
...
set target temperature for IMU
9 years ago
Andrew Tridgell
af23a681e0
AP_BoardConfig: improved docs for BRD_SAFETYENABLE
9 years ago
Michael du Breuil
4d964fbf2f
AP_BoardConfig: allow channels to be moved regardless of safety switch
9 years ago
Ricardo de Almeida Gonzaga
e6564c2efa
AP_BoardConfig: Fix typos
9 years ago
Andrew Tridgell
2304c41f44
AP_BoardConfig: use hal.rcout->enable_sbus_out()
9 years ago
Andrew Tridgell
5b8401cbbc
AP_BoardConfig: allow setup of more complex modes for aux pins on PX4
...
this allows for setting up of timer capture pins
9 years ago
Andrew Tridgell
c3546dfbb0
AP_BoardConfig: default to 6 PWM on FMUv4
...
less likely to use relays
9 years ago
Andrew Tridgell
36528965f7
AP_BoardConfig: added 7s timeout on uavcan startup
9 years ago
Andrew Tridgell
da2a71a3de
AP_BoardConfig: raise uavcan startup delay to 2s
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
Holger Steinhaus
d2b6eb7700
AP_BoardConfig: wait for UAVCAN initialization complete signal
9 years ago
Holger Steinhaus
503e196546
AP_BoardConfig: allow to enable UAVCAN plug-and-play mode
9 years ago
Andrew Tridgell
5d5c398344
AP_BoardConfig: raise UAVCAN startup time
...
new version needs a longer time to start sensors
9 years ago
Don Gagne
2b1bc22b2a
AP_BoardConfig: fix invalid Range meta data
9 years ago
Caio Marcelo de Oliveira Filho
89d6acaeaa
AP_BoardConfig: use millis/micros/panic functions
9 years ago
Andrew Tridgell
2ffabe9e05
AP_BoardConfig: fixed PX4v1 build
9 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
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 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
Andrew Tridgell
1ca6583df8
AP_BoardConfig: restore /dev/vroutput change from Emile
...
my mistake, sorry Emile!
11 years ago
Emile Castelnuovo
39d9e93904
AP_BoardConfig: added #defines for VRBRAIN board
11 years ago
Andrew Tridgell
8095eb0bee
AP_BoardConfig: added BRD_SAFETYENABLE option
...
this allows the safety switch to be disabled on startup
11 years ago