Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
219 additions
and
167 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,55 +1,3 @@ | ||
# Hey Emacs, this is a -*- makefile -*- | ||
include $(CFG_FIXEDWING)/ahrs_float_dcm.makefile | ||
|
||
# attitude estimation for fixedwings via dcm algorithm | ||
|
||
|
||
$(TARGET).CFLAGS += -DAHRS_TYPE_H=\"subsystems/ahrs/ahrs_float_dcm.h\" | ||
|
||
ifeq ($(TARGET), ap) | ||
|
||
ap.CFLAGS += -DUSE_AHRS | ||
|
||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs.c | ||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs/ahrs_aligner.c | ||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs/ahrs_float_dcm.c | ||
|
||
ifdef AHRS_ALIGNER_LED | ||
ap.CFLAGS += -DAHRS_ALIGNER_LED=$(AHRS_ALIGNER_LED) | ||
endif | ||
|
||
ifdef CPU_LED | ||
ap.CFLAGS += -DAHRS_CPU_LED=$(CPU_LED) | ||
endif | ||
|
||
ifdef AHRS_PROPAGATE_FREQUENCY | ||
else | ||
AHRS_PROPAGATE_FREQUENCY = 60 | ||
endif | ||
|
||
ifdef AHRS_CORRECT_FREQUENCY | ||
else | ||
AHRS_CORRECT_FREQUENCY = 60 | ||
endif | ||
|
||
ap.CFLAGS += -DAHRS_PROPAGATE_FREQUENCY=$(AHRS_PROPAGATE_FREQUENCY) | ||
ap.CFLAGS += -DAHRS_CORRECT_FREQUENCY=$(AHRS_CORRECT_FREQUENCY) | ||
|
||
endif | ||
|
||
# since there is currently no SITL sim for the Analog IMU, we use the infrared sim | ||
|
||
ifeq ($(TARGET), sim) | ||
|
||
sim.CFLAGS += -DIR_ROLL_NEUTRAL_DEFAULT=0 | ||
sim.CFLAGS += -DIR_PITCH_NEUTRAL_DEFAULT=0 | ||
|
||
sim.CFLAGS += -DUSE_INFRARED | ||
sim.srcs += subsystems/sensors/infrared.c | ||
sim.srcs += subsystems/sensors/infrared_adc.c | ||
|
||
sim.srcs += $(SRC_ARCH)/sim_ir.c | ||
sim.srcs += $(SRC_ARCH)/sim_imu.c | ||
|
||
endif | ||
|
||
jsbsim.srcs += $(SRC_ARCH)/jsbsim_ir.c | ||
$(warning The ahrs_dcm subsystem has been renamed, please replace <subsystem name="ahrs" type="dcm"/> with <subsystem name="ahrs" type="float_dcm"/> in your airframe file.) |
55 changes: 55 additions & 0 deletions
55
conf/autopilot/subsystems/fixedwing/ahrs_float_dcm.makefile
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Hey Emacs, this is a -*- makefile -*- | ||
|
||
# attitude estimation for fixedwings via dcm algorithm | ||
|
||
|
||
$(TARGET).CFLAGS += -DAHRS_TYPE_H=\"subsystems/ahrs/ahrs_float_dcm.h\" | ||
|
||
ifeq ($(TARGET), ap) | ||
|
||
ap.CFLAGS += -DUSE_AHRS | ||
|
||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs.c | ||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs/ahrs_aligner.c | ||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs/ahrs_float_dcm.c | ||
|
||
ifdef AHRS_ALIGNER_LED | ||
ap.CFLAGS += -DAHRS_ALIGNER_LED=$(AHRS_ALIGNER_LED) | ||
endif | ||
|
||
ifdef CPU_LED | ||
ap.CFLAGS += -DAHRS_CPU_LED=$(CPU_LED) | ||
endif | ||
|
||
ifdef AHRS_PROPAGATE_FREQUENCY | ||
else | ||
AHRS_PROPAGATE_FREQUENCY = 60 | ||
endif | ||
|
||
ifdef AHRS_CORRECT_FREQUENCY | ||
else | ||
AHRS_CORRECT_FREQUENCY = 60 | ||
endif | ||
|
||
ap.CFLAGS += -DAHRS_PROPAGATE_FREQUENCY=$(AHRS_PROPAGATE_FREQUENCY) | ||
ap.CFLAGS += -DAHRS_CORRECT_FREQUENCY=$(AHRS_CORRECT_FREQUENCY) | ||
|
||
endif | ||
|
||
# since there is currently no SITL sim for the Analog IMU, we use the infrared sim | ||
|
||
ifeq ($(TARGET), sim) | ||
|
||
sim.CFLAGS += -DIR_ROLL_NEUTRAL_DEFAULT=0 | ||
sim.CFLAGS += -DIR_PITCH_NEUTRAL_DEFAULT=0 | ||
|
||
sim.CFLAGS += -DUSE_INFRARED | ||
sim.srcs += subsystems/sensors/infrared.c | ||
sim.srcs += subsystems/sensors/infrared_adc.c | ||
|
||
sim.srcs += $(SRC_ARCH)/sim_ir.c | ||
sim.srcs += $(SRC_ARCH)/sim_imu.c | ||
|
||
endif | ||
|
||
jsbsim.srcs += $(SRC_ARCH)/jsbsim_ir.c |
Oops, something went wrong.