uncrustify libraries/AP_GPS/AP_GPS_HIL.cpp

This commit is contained in:
uncrustify 2012-08-16 23:19:44 -07:00 committed by Pat Hickey
parent b9d3f449b9
commit c5451b0e9b

View File

@ -13,9 +13,9 @@
#include "AP_GPS_HIL.h"
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#include "Arduino.h"
#else
#include "WProgram.h"
#include "WProgram.h"
#endif
// Constructors ////////////////////////////////////////////////////////////////
@ -31,7 +31,7 @@ void AP_GPS_HIL::init(enum GPS_Engine_Setting nav_setting)
bool AP_GPS_HIL::read(void)
{
bool result = _updated;
bool result = _updated;
// return true once for each update pushed in
_updated = false;
@ -41,16 +41,16 @@ bool AP_GPS_HIL::read(void)
void AP_GPS_HIL::setHIL(uint32_t _time, float _latitude, float _longitude, float _altitude,
float _ground_speed, float _ground_course, float _speed_3d, uint8_t _num_sats)
{
time = _time;
latitude = _latitude*1.0e7;
longitude = _longitude*1.0e7;
altitude = _altitude*1.0e2;
ground_speed = _ground_speed*1.0e2;
ground_course = _ground_course*1.0e2;
speed_3d = _speed_3d*1.0e2;
num_sats = _num_sats;
fix = true;
new_data = true;
_updated = true;
time = _time;
latitude = _latitude*1.0e7;
longitude = _longitude*1.0e7;
altitude = _altitude*1.0e2;
ground_speed = _ground_speed*1.0e2;
ground_course = _ground_course*1.0e2;
speed_3d = _speed_3d*1.0e2;
num_sats = _num_sats;
fix = true;
new_data = true;
_updated = true;
}