mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 08:55:51 +08:00
[board] initial support for Swing
- dedicated swing without mag - strip code before upload - read battery and baro from sysfs - read power button by hand and restart - needs to be plugged to enable telnet, can be disconnected after upload
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
|
||||
<module name="actuators_swing" dir="actuators" task="actuators">
|
||||
<doc>
|
||||
<description>
|
||||
Actuators Driver for Swing
|
||||
</description>
|
||||
</doc>
|
||||
<header>
|
||||
<file name="actuators.h" dir="boards/swing"/>
|
||||
</header>
|
||||
<makefile target="ap">
|
||||
<define name="ACTUATORS"/>
|
||||
<file name="actuators.c" dir="$(SRC_BOARD)"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
|
||||
<module name="imu_swing" dir="imu">
|
||||
<doc>
|
||||
<description>
|
||||
Driver for IMU on the Parrot Swing drone.
|
||||
- Accelerometer/Gyroscope: MPU6000 via I2C0
|
||||
</description>
|
||||
</doc>
|
||||
<autoload name="imu_common"/>
|
||||
<autoload name="imu_nps"/>
|
||||
<!--autoload name="sonar_bebop"/-->
|
||||
<header>
|
||||
<file name="imu_swing.h" dir="subsystems/imu"/>
|
||||
</header>
|
||||
<init fun="imu_swing_init()"/>
|
||||
<periodic fun="imu_swing_periodic()"/>
|
||||
<event fun="imu_swing_event()"/>
|
||||
<makefile target="!sim|nps|fbw">
|
||||
<define name="USE_I2C0"/>
|
||||
<define name="IMU_TYPE_H" value="subsystems/imu/imu_swing.h" type="string"/>
|
||||
<file name="mpu60x0.c" dir="peripherals"/>
|
||||
<file name="mpu60x0_i2c.c" dir="peripherals"/>
|
||||
<file name="imu_swing.c" dir="subsystems/imu"/>
|
||||
</makefile>
|
||||
</module>
|
||||
Reference in New Issue
Block a user