Skip to content

Commit

Permalink
[state interface] use state interface in rotorcraft firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Jul 12, 2012
1 parent 7bc4ba3 commit fc4bb0f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/firmwares/rotorcraft.makefile
Expand Up @@ -198,6 +198,8 @@ endif

ap.srcs += $(SRC_FIRMWARE)/autopilot.c

ap.srcs += state.c

ap.srcs += $(SRC_FIRMWARE)/stabilization.c
ap.srcs += $(SRC_FIRMWARE)/stabilization/stabilization_none.c
ap.srcs += $(SRC_FIRMWARE)/stabilization/stabilization_rate.c
Expand Down
2 changes: 2 additions & 0 deletions conf/firmwares/subsystems/rotorcraft/fdm_jsbsim.makefile
Expand Up @@ -107,6 +107,8 @@ nps.srcs += subsystems/electrical.c

nps.srcs += $(SRC_FIRMWARE)/autopilot.c

nps.srcs += state.c

#
# in makefile section of airframe xml
# include $(CFG_BOOZ)/subsystems/booz2_ahrs_lkf.makefile
Expand Down
4 changes: 4 additions & 0 deletions sw/airborne/firmwares/rotorcraft/main.c
Expand Up @@ -59,6 +59,8 @@
#include "subsystems/ahrs.h"
#include "subsystems/ins.h"

#include "state.h"

#include "firmwares/rotorcraft/main.h"

#ifdef SITL
Expand Down Expand Up @@ -100,6 +102,8 @@ STATIC_INLINE void main_init( void ) {

electrical_init();

stateInit();

actuators_init();
radio_control_init();

Expand Down

0 comments on commit fc4bb0f

Please sign in to comment.