[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6000] rename booz2_main to main
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [6000] rename booz2_main to main |
Date: |
Tue, 28 Sep 2010 14:04:09 +0000 |
Revision: 6000
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6000
Author: flixr
Date: 2010-09-28 14:04:08 +0000 (Tue, 28 Sep 2010)
Log Message:
-----------
rename booz2_main to main
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.c
paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.h
paparazzi3/trunk/sw/simulator/nps/nps_autopilot_booz.c
paparazzi3/trunk/sw/simulator/old_booz/booz2_sim_main.c
Modified: paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.c
===================================================================
--- paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.c 2010-09-28
13:55:18 UTC (rev 5999)
+++ paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.c 2010-09-28
14:04:08 UTC (rev 6000)
@@ -42,7 +42,7 @@
#include "booz_gps.h"
#include "booz/booz2_analog.h"
-#include "firmwares/rotorcraft/baro.h"
+#include <firmwares/rotorcraft/baro.h>
#include "booz2_battery.h"
@@ -75,18 +75,18 @@
#ifndef SITL
int main( void ) {
- booz2_main_init();
+ main_init();
while(1) {
if (sys_time_periodic())
- booz2_main_periodic();
- booz2_main_event();
+ main_periodic();
+ main_event();
}
return 0;
}
#endif /* SITL */
-STATIC_INLINE void booz2_main_init( void ) {
+STATIC_INLINE void main_init( void ) {
#ifndef RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT
/* IF THIS IS NEEDED SOME PERHIPHERAL THEN PLEASE MOVE IT THERE */
@@ -135,7 +135,7 @@
}
-STATIC_INLINE void booz2_main_periodic( void ) {
+STATIC_INLINE void main_periodic( void ) {
imu_periodic();
@@ -145,7 +145,7 @@
actuators_set(autopilot_motors_on);
PeriodicPrescaleBy10(
\
- { \
+ { \
radio_control_periodic();
\
if (radio_control.status != RADIO_CONTROL_OK && \
autopilot_mode != AP_MODE_KILL && \
@@ -159,7 +159,7 @@
/*BoozControlSurfacesSetFromCommands();*/
\
}, \
{ \
- LED_PERIODIC(); \
+ LED_PERIODIC(); \
}, \
{ baro_periodic();
}, \
@@ -171,7 +171,7 @@
Booz2TelemetryPeriodic();
\
} \
); \
-
+
#ifdef USE_GPS
if (radio_control.status != RADIO_CONTROL_OK && \
autopilot_mode == AP_MODE_NAV && GpsIsLost()) \
@@ -191,7 +191,7 @@
}
-STATIC_INLINE void booz2_main_event( void ) {
+STATIC_INLINE void main_event( void ) {
DatalinkEvent();
Modified: paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.h
===================================================================
--- paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.h 2010-09-28
13:55:18 UTC (rev 5999)
+++ paparazzi3/trunk/sw/airborne/firmwares/rotorcraft/main.h 2010-09-28
14:04:08 UTC (rev 6000)
@@ -21,8 +21,8 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef BOOZ2_MAIN_H
-#define BOOZ2_MAIN_H
+#ifndef MAIN_H
+#define MAIN_H
#ifdef SITL
#define STATIC_INLINE extern
@@ -30,8 +30,8 @@
#define STATIC_INLINE static inline
#endif
-STATIC_INLINE void booz2_main_init( void );
-STATIC_INLINE void booz2_main_periodic( void );
-STATIC_INLINE void booz2_main_event( void );
+STATIC_INLINE void main_init( void );
+STATIC_INLINE void main_periodic( void );
+STATIC_INLINE void main_event( void );
-#endif /* BOOZ2_MAIN_H */
+#endif /* MAIN_H */
Modified: paparazzi3/trunk/sw/simulator/nps/nps_autopilot_booz.c
===================================================================
--- paparazzi3/trunk/sw/simulator/nps/nps_autopilot_booz.c 2010-09-28
13:55:18 UTC (rev 5999)
+++ paparazzi3/trunk/sw/simulator/nps/nps_autopilot_booz.c 2010-09-28
14:04:08 UTC (rev 6000)
@@ -20,7 +20,7 @@
nps_bypass_ahrs = TRUE;
// nps_bypass_ahrs = FALSE;
- booz2_main_init();
+ main_init();
}
@@ -31,34 +31,34 @@
if (nps_radio_control_available(time)) {
booz_radio_control_feed();
- booz2_main_event();
+ main_event();
}
if (nps_sensors_gyro_available()) {
imu_feed_gyro_accel();
- booz2_main_event();
+ main_event();
}
if (nps_sensors_mag_available()) {
imu_feed_mag();
- booz2_main_event();
+ main_event();
}
if (nps_sensors_baro_available()) {
baro_feed_value(sensors.baro.value);
- booz2_main_event();
+ main_event();
}
if (nps_sensors_gps_available()) {
booz_gps_feed_value();
- booz2_main_event();
+ main_event();
}
if (nps_bypass_ahrs) {
sim_overwrite_ahrs();
}
- booz2_main_periodic();
+ main_periodic();
if (time < 8) { /* start with a little bit of hovering */
int32_t init_cmd[4];
Modified: paparazzi3/trunk/sw/simulator/old_booz/booz2_sim_main.c
===================================================================
--- paparazzi3/trunk/sw/simulator/old_booz/booz2_sim_main.c 2010-09-28
13:55:18 UTC (rev 5999)
+++ paparazzi3/trunk/sw/simulator/old_booz/booz2_sim_main.c 2010-09-28
14:04:08 UTC (rev 6000)
@@ -35,7 +35,7 @@
#include "booz_rc_sim.h"
#include "booz2_battery.h"
-#include "booz2_main.h"
+#include "main.h"
char* fg_host = "10.31.4.107";
@@ -99,7 +99,7 @@
ivy_transport_init();
- booz2_main_init();
+ main_init();
}
@@ -151,18 +151,18 @@
// feed a rc frame and signal event
BoozRcSimFeed(sim_time);
// process it
- booz2_main_event();
+ main_event();
if (booz_sensors_model_baro_available()) {
Booz2BaroISRHandler(bsm.baro);
- booz2_main_event();
+ main_event();
#ifdef BYPASS_INS
sim_overwrite_ins();
#endif /* BYPASS_INS */
}
if (booz_sensors_model_gyro_available()) {
booz2_imu_feed_data();
- booz2_main_event();
+ main_event();
#ifdef BYPASS_AHRS
sim_overwrite_ahrs();
#endif /* BYPASS_AHRS */
@@ -173,18 +173,18 @@
if (booz_sensors_model_gps_available()) {
sim_gps_feed_data();
- booz2_main_event();
+ main_event();
}
if (booz_sensors_model_mag_available()) {
sim_mag_feed_data();
- booz2_main_event();
+ main_event();
#ifdef BYPASS_AHRS
sim_overwrite_ahrs();
#endif /* BYPASS_AHRS */
}
- booz2_main_periodic();
+ main_periodic();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6000] rename booz2_main to main,
Felix Ruess <=