Skip to content

Commit

Permalink
changed include/interface to a submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
avtoku committed Nov 21, 2024
1 parent 45a7296 commit c861d44
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 539 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "boards/varmint_h7"]
path = boards/varmint_h7
url = https://github.com/rosflight/varmint_h7.git
[submodule "include/interfaces"]
path = include/interface
url = [email protected]:rosflight/rosflight_firmware-board-common.git
2 changes: 1 addition & 1 deletion boards/varmint_h7
133 changes: 0 additions & 133 deletions include/board.h

This file was deleted.

2 changes: 1 addition & 1 deletion include/comm_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define ROSFLIGHT_FIRMWARE_COMM_MANAGER_H

#include "interface/comm_link.h"
#include "interface/param_listener.h"
#include "param_listener.h"

#include <stdarg.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion include/command_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#ifndef ROSFLIGHT_FIRMWARE_COMMAND_MANAGER_H
#define ROSFLIGHT_FIRMWARE_COMMAND_MANAGER_H

#include "interface/param_listener.h"
#include "param_listener.h"

#include "rc.h"

Expand Down
2 changes: 1 addition & 1 deletion include/controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#ifndef ROSFLIGHT_FIRMWARE_CONTROLLER_H
#define ROSFLIGHT_FIRMWARE_CONTROLLER_H

#include "interface/param_listener.h"
#include "param_listener.h"

#include "command_manager.h"
#include "estimator.h"
Expand Down
10 changes: 3 additions & 7 deletions include/estimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,20 @@
#ifndef ROSFLIGHT_FIRMWARE_ESTIMATOR_H
#define ROSFLIGHT_FIRMWARE_ESTIMATOR_H

#include "interface/param_listener.h"
#include "param_listener.h"

#include <turbomath/turbomath.h>

#include <cmath>
#include <cstdbool>
#include <cstdint>

#include <rosflight_structs.h>

namespace rosflight_firmware
{
class ROSflight;

typedef struct //__attribute__((__packed__))
{
uint64_t timestamp; // us, time of data read complete
float q[4]; // quaternions
float rate[3];
} AttitudeStruct;

class Estimator : public ParamListenerInterface
{
Expand Down
1 change: 1 addition & 0 deletions include/interface
Submodule interface added at 87538d
Loading

0 comments on commit c861d44

Please sign in to comment.