Skip to content

Commit

Permalink
Activate dump_stddev option for pure inertial debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrir-naru committed Nov 21, 2023
1 parent 008b494 commit 9490579
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions tool/INS_GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1139,9 +1139,13 @@ struct INS_GPS_NAV_Factory : public NAV_Factory<INS_GPS> {
struct Checker<INS_GPS_Debug_PureInertial<T> > {
template <class Calibration>
static NAV *check_navdata(const Calibration &calibration){
return INS_GPS_NAV_Factory<
INS_GPS_NAVData<INS_GPS_Debug_PureInertial<T> >
>::generate(calibration);
return options.dump_stddev ?
INS_GPS_NAV_Factory<
INS_GPS_NAVData<INS_GPS_Debug_PureInertial<T, typename T::filtered_ins_t> >
>::generate(calibration) :
INS_GPS_NAV_Factory<
INS_GPS_NAVData<INS_GPS_Debug_PureInertial<T> >
>::generate(calibration);
}
};

Expand Down
6 changes: 3 additions & 3 deletions tool/navigation/INS_GPS_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ class INS_GPS_Debug_Covariance : public INS_GPS_Debug<INS_GPS> {
}
};

template <class INS_GPS>
class INS_GPS_Debug_PureInertial : public INS_GPS_Debug<typename INS_GPS::ins_t> {
template <class INS_GPS, class T_INS = typename INS_GPS::ins_t>
class INS_GPS_Debug_PureInertial : public INS_GPS_Debug<T_INS> {
public:
typedef INS_GPS_Debug<typename INS_GPS::ins_t> super_t;
typedef INS_GPS_Debug<T_INS> super_t;
#if defined(__GNUC__) && (__GNUC__ < 5)
typedef typename super_t::float_t float_t;
typedef typename super_t::vec3_t vec3_t;
Expand Down

0 comments on commit 9490579

Please sign in to comment.