Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.pio
.vscode/*
1 change: 1 addition & 0 deletions AllanVarianceScript
Submodule AllanVarianceScript added at 668dc2
Binary file added allanVar/allanVar.mlx
Binary file not shown.
Binary file added allanVar/standardVariance.mlx
Binary file not shown.
Binary file added deterministicErrors/accel.mlx
Binary file not shown.
Binary file added deterministicErrors/gyro.mlx
Binary file not shown.
Binary file added deterministicErrors/mag.mlx
Binary file not shown.
37 changes: 37 additions & 0 deletions include/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

This directory is intended for project header files.

A header file is a file containing C declarations and macro definitions
to be shared between several project source files. You request the use of a
header file in your project source file (C, C++, etc) located in `src` folder
by including it, with the C preprocessing directive `#include'.

```src/main.c

#include "header.h"

int main (void)
{
...
}
```

Including a header file produces the same results as copying the header file
into each source file that needs it. Such copying would be time-consuming
and error-prone. With a header file, the related declarations appear
in only one place. If they need to be changed, they can be changed in one
place, and programs that include the header file will automatically use the
new version when next recompiled. The header file eliminates the labor of
finding and changing all the copies as well as the risk that a failure to
find one copy will result in inconsistencies within a program.

In C, the convention is to give header files names that end with `.h'.

Read more about using header files in official GCC documentation:

* Include Syntax
* Include Operation
* Once-Only Headers
* Computed Includes

https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html
28 changes: 0 additions & 28 deletions kfConsts.h

This file was deleted.

46 changes: 46 additions & 0 deletions lib/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

This directory is intended for project specific (private) libraries.
PlatformIO will compile them to static libraries and link into the executable file.

The source code of each library should be placed in a separate directory
("lib/your_library_name/[Code]").

For example, see the structure of the following example libraries `Foo` and `Bar`:

|--lib
| |
| |--Bar
| | |--docs
| | |--examples
| | |--src
| | |- Bar.c
| | |- Bar.h
| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html
| |
| |--Foo
| | |- Foo.c
| | |- Foo.h
| |
| |- README --> THIS FILE
|
|- platformio.ini
|--src
|- main.c

Example contents of `src/main.c` using Foo and Bar:
```
#include <Foo.h>
#include <Bar.h>

int main (void)
{
...
}

```

The PlatformIO Library Dependency Finder will find automatically dependent
libraries by scanning project source files.

More information about PlatformIO Library Dependency Finder
- https://docs.platformio.org/page/librarymanager/ldf.html
32 changes: 32 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

;[env:nucleo_h753zi]
;platform = ststm32
;board = nucleo_h753zi
;framework = arduino
;lib_deps =
; tomstewart89/BasicLinearAlgebra @ ^5.1
; Wire
; SPI
; Servo
; IWatchdog


[env:polaris]
board = teensymm
platform = teensy
framework = arduino
build_flags = -D POLARIS -D ENABLE_DEDICATED_SPI=0
lib_deps =
tomstewart89/BasicLinearAlgebra @ ^5.1
Wire
SPI
Servo
41 changes: 41 additions & 0 deletions src/Conventions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Notes:


I change magData variable to imuData because it contains all the IMU data, not just magData
Also please change the accel to return the m/s^2, not g's
I change take in int variable state to onLoop, not the boolean:
0 = preLaunch
1 = high thrust
2 = coast
3 = falling down



Frequencies variable in format:
gyro integrate
accel integrate
accel upate
mag update
gps update
baro update


Note: Could account for distance between the vimu and gps/baro for position calculations, but honesely, is wastes more cpu time than its worth





BLA library:

* Norm: BLA::Norm(vec);
* BLA::CrossProduct(A, B);
* Define: BLA::Matrix<2, 3> x = {1, 2, 3,
4, 5, 6,}
* Multiplication, addition is just *, +, / (note: ensure by a float. ex: 2.0f)
* Submatrix: A.Submatrix<2,2>(1,0); Of a 3x2 mat A, returns bottom 2 rows
* Transpose: A: ~a
* Inverse: A: BLA::Inverse(A)
* PINV: A: QuaternionUtils::pinv(A)


Loading