David Sidrane
fd25f0a594
AEROFC_V1 Moved magic numbers for battery V div and A per V to board_config.h
2017-01-21 11:45:36 +01:00
David Sidrane
0fe915bdfd
aerofc-v1 Removed empty GPIO table
...
aerofc-v1 does not used any user GPIO via the FMU Driver
2017-01-21 11:45:36 +01:00
David Sidrane
216ec6513a
Removed CONFIG_ARCH_BOARD_AEROFC_V1 from tap_esc
...
Changed the CONFIG_ARCH_BOARD_AEROFC_V1 in tap_esc.cpp to
TAP_ESC_NO_VERIFY_CONFIG to maintian the commitment to not
have CONFIG_ARCH_BOARD_xxxx ifdef litter in the PX4 code base.
TAP_ESC_NO_VERIFY_CONFIG will be removed (see todo) in
aerofc-v1/board_config.h
2017-01-21 11:45:36 +01:00
Lorenz Meier
faf83aad6a
Aero FC: Add missing headers
2016-12-27 21:00:51 +01:00
Lucas De Marchi
0341af4858
aerofc: add some fixes to adc driver
...
- Other channels are irrelevant since they aren't physically
connected. Avoid the I2C transaction to get invalid data
- Port the driver to use only one address, as it should be
- Minor changes here and there
- Add test() method to read the latest value - helpful during
debugging.
2016-12-26 16:11:33 +01:00
José Roberto de Souza
53f2c1eb19
aerofc: Implement ADC
...
Measure the battery voltage of Aero RTF kit will be done by FPGA
and read by AeroFC using I2C bus.
The protocol is a little bit odd, it have different I2C slave
address for each "register", in future the FPGA RTL will
have a protocol more similar to other I2C sensors.
Also Aero RTF don't have a ADC line to measure current consumption.
2016-12-26 16:11:33 +01:00
Beat Küng
c662113527
board_name.c: remove the file and HW_ARCH macro, use px4_board_name() instead
...
boards define BOARD_NAME, so board_name() is not necessary. HW_ARCH was
just a wrapper around board_name().
This patch simplifies to having only one common method px4_board_name().
2016-12-21 11:35:10 +01:00
David Sidrane
3f64bf81f3
RGB LED cleanup
...
Removed dead code and magic numbers
Defined the RGB LED to support 2 timers
2016-12-21 08:34:22 +01:00
David Sidrane
a2adf94d13
Changes to aerofc-v1 for upstream Nuttx and hardfault logging
2016-12-21 08:34:21 +01:00
Lucas De Marchi
9468e7779a
aerofc: use same macro name as px4fmu boards
2016-12-20 08:51:14 +01:00
Lucas De Marchi
eaa2cf7d99
aerofc: fix LED names
...
There are no blue/red LEDs and these names just causes confusion with
the "always-on LEDs".
2016-12-20 08:51:14 +01:00
José Roberto de Souza
9bb77adbec
Aerofc: Fix and add more information about flash sectors
2016-12-01 07:52:23 +01:00
José Roberto de Souza
9befff1e79
aerofc: Add information about the flash usage
2016-11-28 09:21:12 +01:00
José Roberto de Souza
8fb15f1de8
aerofc: Enable I2C1 for external compass
...
For now it is only checking if there is a external HMC5883, if
necessary more compass should be added and probe.
2016-11-28 09:21:12 +01:00
Lucas De Marchi
3b3d4f385c
aerofc: fix UART port assignments
2016-11-28 09:21:12 +01:00
James Goppert
893714dc6a
aerofc: Fixes for init
2016-11-28 09:21:12 +01:00
Lucas De Marchi
ce8a7f6bdc
aerofc: fix comment regarding hrt
2016-11-28 09:21:12 +01:00
Lucas De Marchi
1aea9457a9
aerofc: remove usb sensing
2016-11-28 09:21:12 +01:00
José Roberto de Souza
51f85858f2
aerofc: Power on sensors
...
MPU6500, MS5611 and HMC5883 only power on when GPIO_SENSORS_POWER is
set.
2016-11-28 09:21:12 +01:00
José Roberto de Souza
7ced5a1b6f
aerofc: Remove unused GPIO configuration
2016-11-28 09:21:12 +01:00
José Roberto de Souza
0f9ad1c393
aerofc: Remove remaining code and macros of RGBLed
2016-11-28 09:21:12 +01:00
José Roberto de Souza
8788e2e81e
aerofc: Remove ADC configuration
...
Battery voltage and current will be read in another way in future.
2016-11-28 09:21:12 +01:00
Lucas De Marchi
007731df46
aerofc: use center LED for activity
...
Like in bootloader, use the centered LED to show activity.
2016-11-28 09:21:12 +01:00
José Roberto de Souza
e690af14d8
aerofc: fix I2C bus of MS5611 and HMC5883
2016-11-28 09:21:12 +01:00
José Roberto de Souza
ef7c3b2174
aerofc: Fix SPI configuration
...
SPI bus 1 is the bus connected to MPU6500, so remove SPI bus 3 and 4.
Also remove everything else related to SPI that this board doesn't have.
2016-11-28 09:21:12 +01:00
Lucas De Marchi
0cd7984b7f
Rename asc board to aerofc
2016-11-28 09:21:12 +01:00