2018-01-13 21:41:04 -04:00
|
|
|
# hardware setup for V2450, based around FMUv3 but no IO MCU and
|
|
|
|
# custom config options for ArduCopter
|
|
|
|
|
|
|
|
# start with fmuv3 base port
|
|
|
|
include ../fmuv3/hwdef.dat
|
|
|
|
|
2018-02-08 07:13:39 -04:00
|
|
|
# remove some unnecessary features inherited from fmuv3
|
2018-02-08 01:18:11 -04:00
|
|
|
undef UART8
|
|
|
|
undef UART8_TX
|
|
|
|
undef UART8_RX
|
|
|
|
undef USART3
|
|
|
|
undef USART3_TX
|
|
|
|
undef USART3_RX
|
2018-02-08 07:13:39 -04:00
|
|
|
undef CAN1
|
2018-03-01 02:38:10 -04:00
|
|
|
undef CAN1_RX
|
|
|
|
undef CAN1_TX
|
2018-02-08 07:13:39 -04:00
|
|
|
undef CAN2
|
2018-03-01 02:38:10 -04:00
|
|
|
undef CAN2_RX
|
|
|
|
undef CAN2_TX
|
2018-02-08 01:18:11 -04:00
|
|
|
undef IOMCU_UART
|
|
|
|
undef AP_FEATURE_SBUS_OUT
|
|
|
|
undef HAL_OS_FATFS_IO
|
|
|
|
undef AP_FEATURE_RTSCTS
|
|
|
|
undef HAL_WITH_RAMTRON
|
|
|
|
undef IOMCU_UART
|
2018-02-08 07:13:39 -04:00
|
|
|
undef SDIO
|
2018-02-08 01:18:11 -04:00
|
|
|
|
2022-09-18 14:18:37 -03:00
|
|
|
# short board name override (13 chars) to match original max length; can't change because name is used for transmitter bind CRC
|
|
|
|
define CHIBIOS_SHORT_BOARD_NAME "skyviper-v245"
|
|
|
|
|
2020-04-24 08:10:08 -03:00
|
|
|
SERIAL_ORDER OTG1 USART2 EMPTY UART4
|
2018-02-08 01:18:11 -04:00
|
|
|
|
2018-01-13 21:41:04 -04:00
|
|
|
# enable AP_Radio support
|
|
|
|
define HAL_RCINPUT_WITH_AP_RADIO 1
|
|
|
|
|
|
|
|
define HAL_GPIO_RADIO_RESET 1 // PB0 GPIO from FMU3
|
2018-03-16 18:49:40 -03:00
|
|
|
|
|
|
|
# setup for radio IRQ on PD15
|
|
|
|
undef PD15
|
|
|
|
PD15 MPU_DRDY INPUT GPIO(100)
|
|
|
|
define HAL_GPIO_RADIO_IRQ 100
|
2018-01-13 21:41:04 -04:00
|
|
|
|
|
|
|
# setup defines for ArduCopter config
|
|
|
|
define TOY_MODE_ENABLED ENABLED
|
|
|
|
define ARMING_DELAY_SEC 0
|
|
|
|
define LAND_START_ALT 700
|
|
|
|
define LAND_DETECTOR_ACCEL_MAX 2.0f
|
|
|
|
|
|
|
|
# support cypress and cc2500 radios
|
2018-01-18 03:18:48 -04:00
|
|
|
SPIDEV cypress SPI2 DEVID11 FRAM_CS MODE0 2*MHZ 2*MHZ
|
|
|
|
SPIDEV cc2500 SPI2 DEVID12 FRAM_CS MODE0 4*MHZ 4*MHZ
|
|
|
|
SPIDEV pixartflow SPI4 DEVID13 MPU_EXT_CS MODE3 2*MHZ 2*MHZ
|
2018-02-08 07:13:39 -04:00
|
|
|
|
|
|
|
# SPI2 for the cypress needs exclusive access or we will end up with
|
|
|
|
# lost packets
|
2019-12-29 03:57:57 -04:00
|
|
|
DMA_PRIORITY SPI2_* SPI* ADC*
|
2018-02-08 07:13:39 -04:00
|
|
|
DMA_NOSHARE SPI2_*
|
|
|
|
undef PA1
|
|
|
|
PA1 UART4_RX UART4 NODMA
|
2018-03-01 02:51:39 -04:00
|
|
|
|
2020-03-10 23:52:59 -03:00
|
|
|
# use flash storage
|
2021-10-27 02:32:43 -03:00
|
|
|
STORAGE_FLASH_PAGE 22
|
2020-03-10 23:52:59 -03:00
|
|
|
|
2018-03-24 02:12:10 -03:00
|
|
|
env DEFAULT_PARAMETERS 'Tools/Frame_params/SkyViper-2450GPS/defaults.parm'
|
2018-04-10 19:06:27 -03:00
|
|
|
|
|
|
|
# the web UI uses an abin file for firmware uploads
|
|
|
|
env BUILD_ABIN True
|
2021-04-19 14:09:02 -03:00
|
|
|
|
|
|
|
# Disable un-needed hardware drivers
|
2022-01-26 22:38:52 -04:00
|
|
|
define AP_AIRSPEED_ENABLED 0
|
2022-01-27 20:09:43 -04:00
|
|
|
define AP_BEACON_ENABLED 0
|
2021-12-29 19:09:10 -04:00
|
|
|
define AP_OPTICALFLOW_ENABLED 0
|
2022-04-16 23:54:07 -03:00
|
|
|
define AP_FRSKY_TELEM_ENABLED 0
|
2023-04-09 04:39:19 -03:00
|
|
|
define AP_BEACON_ENABLED 0
|
2022-01-26 22:38:52 -04:00
|
|
|
define HAL_ADSB_SAGETECH_ENABLED 0
|
|
|
|
define HAL_ADSB_UAVIONIX_MAVLINK_ENABLED 0
|
2022-03-04 17:33:01 -04:00
|
|
|
define AP_AIS_ENABLED 0
|
2023-03-06 22:02:49 -04:00
|
|
|
define AP_BATTERY_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AP_BATTERY_ANALOG_ENABLED 1
|
2022-01-26 22:38:52 -04:00
|
|
|
define HAL_CRSF_TELEM_ENABLED 0
|
|
|
|
define HAL_EFI_ENABLED 0
|
|
|
|
define HAL_EXTERNAL_AHRS_ENABLED 0
|
|
|
|
define HAL_GENERATOR_ENABLED 0
|
|
|
|
define HAL_HOTT_TELEM_ENABLED 0
|
2022-01-30 20:05:11 -04:00
|
|
|
define HAL_MOUNT_ENABLED 0
|
2022-01-26 22:38:52 -04:00
|
|
|
define HAL_MSP_SENSORS_ENABLED 0
|
|
|
|
define HAL_NMEA_OUTPUT_ENABLED 0
|
|
|
|
define HAL_PARACHUTE_ENABLED 0
|
|
|
|
define HAL_PICCOLO_CAN_ENABLE 0
|
|
|
|
define HAL_RUNCAM_ENABLED 0
|
2023-01-19 15:55:36 -04:00
|
|
|
define AP_SMARTAUDIO_ENABLED 0
|
2022-01-26 22:38:52 -04:00
|
|
|
define HAL_SPEKTRUM_TELEM_ENABLED 0
|
|
|
|
define HAL_SPRAYER_ENABLED 0
|
2022-01-30 20:05:11 -04:00
|
|
|
define HAL_WITH_ESC_TELEM 0
|
2022-10-01 07:21:38 -03:00
|
|
|
define AP_LANDINGGEAR_ENABLED 0
|
2022-01-26 22:38:52 -04:00
|
|
|
define MODE_TURTLE_ENABLED 0
|
2022-08-12 22:03:57 -03:00
|
|
|
define AP_ICENGINE_ENABLED 0
|
2022-11-15 04:27:13 -04:00
|
|
|
define HAL_DISPLAY_ENABLED 0
|
2022-01-27 00:25:52 -04:00
|
|
|
|
2022-04-13 01:57:13 -03:00
|
|
|
# serially-attached actuators aren't relevant on SkyViper:
|
|
|
|
define AP_FETTEC_ONEWIRE_ENABLED 0
|
|
|
|
define AP_ROBOTISSERVO_ENABLED 0
|
|
|
|
define AP_VOLZ_ENABLED 0
|
|
|
|
define HAL_SUPPORT_RCOUT_SERIAL 0
|
|
|
|
define HAL_TORQEEDO_ENABLED 0
|
|
|
|
|
2022-01-26 22:39:20 -04:00
|
|
|
# the SkyViper only has a single Baro:
|
|
|
|
define AP_BARO_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AP_BARO_ICM20789_ENABLED 1
|
|
|
|
|
2022-01-27 00:25:52 -04:00
|
|
|
# SkyViper has only one physical GPS but can also take from mavlink:
|
|
|
|
define AP_GPS_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AP_GPS_UBLOX_ENABLED 1
|
|
|
|
define AP_GPS_MAV_ENABLED 1
|
2023-07-18 05:34:22 -03:00
|
|
|
define GPS_MOVING_BASELINE 0
|
|
|
|
define GPS_MAX_RECEIVERS 1 # removes blended support
|
2022-01-30 08:22:01 -04:00
|
|
|
|
|
|
|
# enable only the QUAD frame
|
|
|
|
define AP_MOTORS_FRAME_DEFAULT_ENABLED 0
|
|
|
|
define AP_MOTORS_FRAME_QUAD_ENABLED 1
|
2022-01-30 19:32:01 -04:00
|
|
|
|
|
|
|
# SkyViper isn't going to sprout new compasses:
|
|
|
|
define COMPASS_MAX_SENSORS 1
|
2023-01-04 19:16:39 -04:00
|
|
|
define AP_COMPASS_BACKEND_DEFAULT_ENABLED 0
|
2023-02-07 18:55:11 -04:00
|
|
|
define AP_COMPASS_BMM150_ENABLED 1
|
2023-02-07 19:48:11 -04:00
|
|
|
# avoid trying to detect BMM150 backends; the one compass is
|
|
|
|
#specifed as part of PCNC1:
|
|
|
|
define AP_COMPASS_BMM150_DETECT_BACKENDS_ENABLED 0
|
2023-01-04 19:16:39 -04:00
|
|
|
|
2022-01-30 20:03:49 -04:00
|
|
|
define BARO_MAX_INSTANCES 1
|
|
|
|
define INS_MAX_INSTANCES 1
|
2022-02-24 01:34:07 -04:00
|
|
|
|
2022-03-12 06:37:28 -04:00
|
|
|
# SkyViper doesn't have any rangefinder, but might get mavlink?
|
|
|
|
define AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AP_RANGEFINDER_MAVLINK_ENABLED 1
|
|
|
|
|
2022-09-20 03:37:47 -03:00
|
|
|
# SkyViper doesn't have RPM sensors:
|
|
|
|
define AP_RPM_ENABLED 0
|
|
|
|
|
2022-09-20 04:37:47 -03:00
|
|
|
# SkyViper doesn't have a gripper:
|
|
|
|
define AP_GRIPPER_ENABLED 0
|
|
|
|
|
2023-02-28 22:57:09 -04:00
|
|
|
# SkyViper doesn't have serially-connected LEDs:
|
|
|
|
define AP_SERIALLED_ENABLED 0
|
|
|
|
|
2022-11-02 05:55:25 -03:00
|
|
|
# SkyViper has a very limited set of blinkenlights
|
|
|
|
define AP_NOTIFY_NCP5623_ENABLED 0
|
2022-11-07 21:22:04 -04:00
|
|
|
define AP_NOTIFY_PCA9685_ENABLED 0
|
2022-11-10 19:08:19 -04:00
|
|
|
define AP_NOTIFY_TOSHIBALED_ENABLED 0
|
2022-11-16 04:19:24 -04:00
|
|
|
undef AP_NOTIFY_OREOLED_ENABLED
|
|
|
|
define AP_NOTIFY_OREOLED_ENABLED 0
|
2022-12-15 07:00:24 -04:00
|
|
|
define HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED 0
|
2022-11-02 05:55:25 -03:00
|
|
|
|
2023-01-03 01:54:17 -04:00
|
|
|
define AP_INERTIALSENSOR_BATCHSAMPLER_ENABLED 0
|
|
|
|
|
2023-02-06 01:39:02 -04:00
|
|
|
# SkyViper really doesn't need advanced failsafe features:
|
|
|
|
define AP_ADVANCEDFAILSAFE_ENABLED 0
|
|
|
|
|
2023-01-11 22:51:29 -04:00
|
|
|
// EKF3 features:
|
|
|
|
define EK3_FEATURE_EXTERNAL_NAV 0
|
|
|
|
define EK3_FEATURE_BODY_ODOM 0
|
|
|
|
|
2023-01-19 09:00:16 -04:00
|
|
|
// video on SkyViper is via the Sonix
|
|
|
|
define AP_VIDEOTX_ENABLED 0
|
|
|
|
|
2023-03-03 00:43:23 -04:00
|
|
|
// good luck fitting a winch onto SkyViper:
|
|
|
|
define AP_WINCH_ENABLED 0
|
|
|
|
|
2023-03-06 18:56:35 -04:00
|
|
|
define AP_CAMERA_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AP_CAMERA_MAVLINK_ENABLED 1
|
|
|
|
|
2023-05-03 10:08:00 -03:00
|
|
|
# SkyViper uses AP_Radio, which does its own RC protocol decoding:
|
|
|
|
define AP_RCPROTOCOL_ENABLED 0
|
2023-03-14 08:18:29 -03:00
|
|
|
|
2023-03-26 19:21:14 -03:00
|
|
|
// few prelcnad backends are applicable
|
|
|
|
define AC_PRECLAND_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AC_PRECLAND_COMPANION_ENABLED 1
|
|
|
|
|
2023-03-26 19:05:28 -03:00
|
|
|
// no proximity sensors are applicable:
|
|
|
|
define AP_PROXIMITY_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AP_PROXIMITY_MAV_ENABLED 1
|
|
|
|
|
2023-04-14 21:39:44 -03:00
|
|
|
# can't fit visual odometry cameras on!
|
|
|
|
define AP_VISUALODOM_BACKEND_DEFAULT_ENABLED 0
|
|
|
|
define AP_VISUALODOM_MAV_ENABLED 1
|
|
|
|
|
2023-04-06 10:35:20 -03:00
|
|
|
// no OSD on SkyViper
|
|
|
|
define OSD_ENABLED 0
|
|
|
|
define OSD_PARAM_ENABLED 0
|
|
|
|
|
|
|
|
// no MSP:
|
|
|
|
define HAL_WITH_MSP_DISPLAYPORT 0
|
|
|
|
define HAL_MSP_ENABLED 0
|
|
|
|
|
|
|
|
// no UCP ADSB sensors:
|
|
|
|
define HAL_ADSB_UCP_ENABLED 0
|
|
|
|
|
|
|
|
// no auxiliary temperature sensors:
|
|
|
|
define AP_TEMPERATURE_SENSOR_ENABLED 0
|
|
|
|
|
|
|
|
// no LTM telemetry
|
|
|
|
define AP_LTM_TELEM_ENABLED 0
|
|
|
|
|
|
|
|
// no buttons on SkyViper:
|
|
|
|
define HAL_BUTTON_ENABLED 0
|
|
|
|
|
2023-06-07 02:56:50 -03:00
|
|
|
// disable scripting on SkyViper (should we enable this?)
|
|
|
|
define AP_SCRIPTING_ENABLED 0
|
|
|
|
|
2023-06-16 10:01:42 -03:00
|
|
|
// SkyViper does not have a second battery....
|
|
|
|
define AP_BATT_MONITOR_MAX_INSTANCES 1
|
|
|
|
define AP_MAVLINK_BATTERY2_ENABLED 0
|
|
|
|
|
2023-07-18 07:51:05 -03:00
|
|
|
# SkyViper doesn't use the Plane landing library:
|
|
|
|
define HAL_LANDING_DEEPSTALL_ENABLED 0
|
|
|
|
|
2023-08-10 05:56:59 -03:00
|
|
|
# bootloader embedding / bootloader flashing not available
|
|
|
|
define AP_BOOTLOADER_FLASHING_ENABLED 0
|
|
|
|
|
2022-02-24 01:34:07 -04:00
|
|
|
AUTOBUILD_TARGETS Copter
|