Skip to content

Commit

Permalink
Merge pull request #3 from bolderflight/earthrad
Browse files Browse the repository at this point in the history
Typo / bug in EKF15 state didn't take the sqrt of the denominator in …
  • Loading branch information
flybrianfly authored Dec 21, 2022
2 parents d427553 + 8f8d6cc commit 9029646
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v4.0.2
- Typo / bug in EKF15 state didn't take the sqrt of the denominator in the radius of curvature calc

## v4.0.1
- Fixed inline-ness of functions

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.14)
# Project information
project(Navigation
VERSION 4.0.1
VERSION 4.0.2
DESCRIPTION "Navigation filters and utilities"
LANGUAGES CXX
)
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Bolder Flight Systems Navigation
version=4.0.1
version=4.0.2
author=Brian Taylor <[email protected]>
maintainer=Brian Taylor <[email protected]>
sentence=Navigation and state estimation transformations, utilities, and filters.
Expand Down
2 changes: 1 addition & 1 deletion src/ekf_15_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class Ekf15State {
/* Position update */
double denom = fabs(1.0 - (ECC2 * sin(ins_lla_rad_m_(0)) *
sin(ins_lla_rad_m_(0))));
double sqrt_denom = denom;
double sqrt_denom = std::sqrt(denom);
double Rns = SEMI_MAJOR_AXIS_LENGTH_M * (1 - ECC2) /
(denom * sqrt_denom);
double Rew = SEMI_MAJOR_AXIS_LENGTH_M / sqrt_denom;
Expand Down

0 comments on commit 9029646

Please sign in to comment.