From c8a64ccbc71dd8b1466e2ffd6f46e6c8fefe02c8 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Sun, 11 Mar 2012 15:26:14 -0500 Subject: [PATCH] Need to use slightly different code to generate the InitMods.c function for simulation because of the Attitude/Revolution format. --- flight/Revolution/System/pios_board_posix.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/flight/Revolution/System/pios_board_posix.c b/flight/Revolution/System/pios_board_posix.c index 732bcda1e..bc9013ee3 100644 --- a/flight/Revolution/System/pios_board_posix.c +++ b/flight/Revolution/System/pios_board_posix.c @@ -29,10 +29,12 @@ #include #include -#include "attituderaw.h" -#include "attitudeactual.h" -#include "positionactual.h" -#include "velocityactual.h" +#include "accels.h" +#include "baroaltitude.h" +#include "gpsposition.h" +#include "gyros.h" +#include "gyrosbias.h" +#include "magnetometer.h" #include "manualcontrolsettings.h" #include "pios_rcvr_priv.h" @@ -133,6 +135,13 @@ void PIOS_Board_Init(void) { UAVObjInitialize(); UAVObjectsInitializeAll(); + AccelsInitialize(); + BaroAltitudeInitialize(); + MagnetometerInitialize(); + GPSPositionInitialize(); + GyrosInitialize(); + GyrosBiasInitialize(); + /* Initialize the alarms library */ AlarmsInitialize();