mirror of
https://github.com/okalachev/flix.git
synced 2025-08-17 09:06:11 +00:00
Use natural order of ino files includes in simulation
In Arduino, ino files are included in alphabetical order. Cleanup unused function declarations in simulation, add missing. Rename flu to frd function to match the code style.
This commit is contained in:
@@ -23,6 +23,7 @@ Vector rates;
|
||||
Quaternion attitude;
|
||||
|
||||
// declarations
|
||||
void step();
|
||||
void computeLoopRate();
|
||||
void applyGyro();
|
||||
void applyAcc();
|
||||
@@ -31,25 +32,35 @@ void interpretRC();
|
||||
void controlAttitude();
|
||||
void controlRate();
|
||||
void controlTorque();
|
||||
void showTable();
|
||||
const char* getModeName();
|
||||
void sendMotors();
|
||||
bool motorsActive();
|
||||
void testMotor(uint8_t n);
|
||||
void print(const char* format, ...);
|
||||
void doCommand(String str, bool echo);
|
||||
void cliTestMotor(uint8_t n);
|
||||
void handleInput();
|
||||
void calibrateRC();
|
||||
void normalizeRC();
|
||||
void printRCCal();
|
||||
void dumpLog();
|
||||
void processMavlink();
|
||||
void sendMavlink();
|
||||
void sendMessage(const void *msg);
|
||||
void receiveMavlink();
|
||||
void handleMavlink(const void *_msg);
|
||||
void mavlinkPrint(const char* str);
|
||||
inline Quaternion fluToFrd(const Quaternion &q);
|
||||
void failsafe();
|
||||
void armingFailsafe();
|
||||
void rcLossFailsafe();
|
||||
void descend();
|
||||
inline Quaternion FLU2FRD(const Quaternion &q);
|
||||
int parametersCount();
|
||||
const char *getParameterName(int index);
|
||||
float getParameter(int index);
|
||||
float getParameter(const char *name);
|
||||
bool setParameter(const char *name, const float value);
|
||||
void printParameters();
|
||||
void resetParameters();
|
||||
|
||||
// mocks
|
||||
void setLED(bool on) {};
|
||||
|
@@ -17,17 +17,18 @@
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "flix.h"
|
||||
|
||||
#include "cli.ino"
|
||||
#include "control.ino"
|
||||
#include "estimate.ino"
|
||||
#include "failsafe.ino"
|
||||
#include "log.ino"
|
||||
#include "lpf.h"
|
||||
#include "mavlink.ino"
|
||||
#include "motors.ino"
|
||||
#include "parameters.ino"
|
||||
#include "rc.ino"
|
||||
#include "time.ino"
|
||||
#include "motors.ino"
|
||||
#include "estimate.ino"
|
||||
#include "control.ino"
|
||||
#include "log.ino"
|
||||
#include "parameters.ino"
|
||||
#include "cli.ino"
|
||||
#include "mavlink.ino"
|
||||
#include "failsafe.ino"
|
||||
#include "lpf.h"
|
||||
|
||||
using ignition::math::Vector3d;
|
||||
using namespace gazebo;
|
||||
|
Reference in New Issue
Block a user