2012-11-07 06:03:30 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2012-08-16 21:50:02 -03:00
|
|
|
|
2012-11-07 06:03:30 -04:00
|
|
|
// read_inertia - read inertia in from accelerometers
|
|
|
|
static void read_inertia()
|
2012-06-26 02:17:04 -03:00
|
|
|
{
|
2012-11-07 06:03:30 -04:00
|
|
|
// inertial altitude estimates
|
|
|
|
inertial_nav.update(G_Dt);
|
2013-02-01 23:00:09 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// read_inertial_altitude - pull altitude and climb rate from inertial nav library
|
|
|
|
static void read_inertial_altitude()
|
|
|
|
{
|
|
|
|
// with inertial nav we can update the altitude and climb rate at 50hz
|
|
|
|
current_loc.alt = inertial_nav.get_altitude();
|
|
|
|
climb_rate = inertial_nav.get_velocity_z();
|
2013-04-23 10:03:34 -03:00
|
|
|
}
|