#define BEEPER_CHANNEL 2
#define BEEPER_PORT (&stm_gpioe)
#define BEEPER_PIN 4
-#define AO_BEEP_MID_DEFAULT 179 /* 2100 Hz */
-#define AO_BEEP_MAKE_LOW(m) ((uint8_t) ((m) * 197U/179U)) /* 1900 Hz */
-#define AO_BEEP_MAKE_HIGH(m) ((uint8_t) ((m) * 163U/179U)) /* 2300 Hz */
#define HAS_BATTERY_REPORT 1
#define HAS_RADIO 1
#define HAS_TELEMETRY 1
*
* pin 1 NE corner of chip
*
- * +along +Y +roll +Y
- * +across -X +pitch -X
+ * +along +X +roll +X
+ * +across -Y +pitch -Y
* +through +Z +yaw +Z
*/
#define AO_BMI088_GYR_CS_PIN 13
#define HAS_IMU 1
-#define ao_bmi088_along(m) ((m)->acc.y)
-#define ao_bmi088_across(m) (-(m)->acc.x)
+#define ao_bmi088_along(m) ((m)->acc.x)
+#define ao_bmi088_across(m) ((m)->acc.y)
#define ao_bmi088_through(m) ((m)->acc.z)
-#define ao_bmi088_roll(m) ((m)->gyr.y)
-#define ao_bmi088_pitch(m) (-(m)->gyr.x)
+#define ao_bmi088_roll(m) ((m)->gyr.x)
+#define ao_bmi088_pitch(m) ((m)->gyr.y)
#define ao_bmi088_yaw(m) ((m)->gyr.z)
#define ao_data_along(packet) ao_bmi088_along(&(packet)->bmi088)