Skip to content
Snippets Groups Projects
Commit c4014510 authored by Federico Mandelli's avatar Federico Mandelli
Browse files

[Config] Moved configs useful during test in only 2 files

parent 6c68565a
No related branches found
No related tags found
No related merge requests found
......@@ -25,13 +25,15 @@
#include <drivers/timer/PWM.h>
#include <drivers/timer/TimerUtils.h>
#include "WingConfig.h" //Ugly thing to do but useful for when we need to change paramether on the fly (Terni)
namespace Parafoil
{
namespace ActuatorsConfigs
{
constexpr float SERVO_TWIRL_RADIUS = 0.5f;
constexpr float SERVO_TWIRL_RADIUS = MAX_SERVO_APERTURE;
// Left servo
static TIM_TypeDef* const SERVO_1_TIMER = TIM4;
......
......@@ -28,6 +28,7 @@ namespace Parafoil
namespace WingConfig
{
// Algorithm configuration
constexpr int WING_UPDATE_PERIOD = 100; // [ms]
constexpr int WING_ALTITUDE_TRIGGER_PERIOD = 100; //[ms]
......@@ -47,6 +48,7 @@ constexpr float DEFAULT_TARGET_LON = 12.585847;
constexpr float DEFAULT_TARGET_LON = 9;*/ //to be safe
#endif
constexpr float MAX_SERVO_APERTURE = 0.5f;
// Wing altitude checker configs
constexpr int WING_ALTITUDE_TRIGGER_CONFIDENCE = 5; // [number of sample]
constexpr int WING_ALTITUDE_TRIGGER_FALL = 50; // [meters]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment