Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use imu analog_gyro subsystem in microjet example and print errors if…
… old gyro subsystems are used
- Loading branch information
Showing
3 changed files
with
25 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
# Hey Emacs, this is a -*- makefile -*- | ||
|
||
# additional pitch stabilization with gyro | ||
# | ||
# this assumes you are already using a roll gyro | ||
# | ||
# default values for tiny and twog are: | ||
# ADC_GYRO_PITCH = ADC_4 | ||
# | ||
# to change just redefine these before including this file | ||
# | ||
|
||
ap.CFLAGS += -DADC_CHANNEL_GYRO_PITCH=$(ADC_GYRO_PITCH) -DUSE_$(ADC_GYRO_PITCH) | ||
$(info Error: Please replace <subsystem name="gyro" type="pitch"/> with) | ||
$(info <subsystem name="imu" type="analog_gyro">) | ||
$(info <configure name="GYRO_P" value="ADC_3"/>) | ||
$(info <configure name="GYRO_Q" value="ADC_4"/>) | ||
$(info </subsystem>) | ||
$(info in your airframe file.) | ||
|
||
$(error The gyro_pitch subsystem has been removed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
# Hey Emacs, this is a -*- makefile -*- | ||
$(info Error: Please replace <subsystem name="gyro" type="roll"/> with) | ||
$(info <subsystem name="imu" type="analog_gyro">) | ||
$(info <configure name="GYRO_P" value="ADC_3"/>) | ||
$(info </subsystem>) | ||
$(info in your airframe file.) | ||
|
||
# roll stabilization with gyro | ||
|
||
# | ||
# default values for tiny and twog are: | ||
# ADC_GYRO_ROLL = ADC_3 | ||
# ADC_GYRO_NB_SAMPLES = 16 | ||
# | ||
# to change just redefine these before including this file | ||
# | ||
|
||
ap.CFLAGS += -DADC_CHANNEL_GYRO_ROLL=$(ADC_GYRO_ROLL) -DUSE_$(ADC_GYRO_ROLL) | ||
ap.CFLAGS += -DADC_CHANNEL_GYRO_NB_SAMPLES=$(ADC_GYRO_NB_SAMPLES) | ||
|
||
ap.CFLAGS += -DUSE_GYRO -DADXRS150 | ||
ap.srcs += $(SRC_FIXEDWING)/gyro.c | ||
$(error The gyro_pitch subsystem has been removed) |