uncrustify libraries/AP_Math/examples/eulers/eulers.pde

This commit is contained in:
uncrustify 2012-08-16 23:20:14 -07:00 committed by Pat Hickey
parent 6fc94828b8
commit 86627c9a9d
1 changed files with 17 additions and 17 deletions

View File

@ -11,21 +11,21 @@ FastSerialPort(Serial, 0);
#ifdef DESKTOP_BUILD #ifdef DESKTOP_BUILD
// all of this is needed to build with SITL // all of this is needed to build with SITL
#include <DataFlash.h> #include <DataFlash.h>
#include <APM_RC.h> #include <APM_RC.h>
#include <GCS_MAVLink.h> #include <GCS_MAVLink.h>
#include <Arduino_Mega_ISR_Registry.h> #include <Arduino_Mega_ISR_Registry.h>
#include <AP_PeriodicProcess.h> #include <AP_PeriodicProcess.h>
#include <AP_ADC.h> #include <AP_ADC.h>
#include <SPI.h> #include <SPI.h>
#include <I2C.h> #include <I2C.h>
#include <AP_Baro.h> #include <AP_Baro.h>
#include <AP_Compass.h> #include <AP_Compass.h>
#include <AP_GPS.h> #include <AP_GPS.h>
#include <Filter.h> #include <Filter.h>
Arduino_Mega_ISR_Registry isr_registry; Arduino_Mega_ISR_Registry isr_registry;
AP_Baro_BMP085_HIL barometer; AP_Baro_BMP085_HIL barometer;
AP_Compass_HIL compass; AP_Compass_HIL compass;
#endif #endif
#include <AP_Declination.h> #include <AP_Declination.h>
@ -215,8 +215,8 @@ void test_frame_transforms(void)
// generate a random float between -1 and 1 // generate a random float between -1 and 1
static float rand_num(void) static float rand_num(void)
{ {
float ret = ((unsigned)random()) % 2000000; float ret = ((unsigned)random()) % 2000000;
return (ret - 1.0e6) / 1.0e6; return (ret - 1.0e6) / 1.0e6;
} }
void test_matrix_rotate(void) void test_matrix_rotate(void)
@ -259,7 +259,7 @@ void test_matrix_rotate(void)
} }
/* /*
euler angle tests * euler angle tests
*/ */
void setup(void) void setup(void)
{ {