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

[OBSW] Sett parameters pre euroc flight

parent 77198a8f
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,6 @@
namespace Payload
{
constexpr unsigned int MISSION_TIMEOUT = 15 * 60 * 1000; // [ms]
constexpr unsigned int APOGEE_TIMEOUT = 40 * 1000; // [ms]
constexpr unsigned int APOGEE_TIMEOUT = 32 * 1000; // [ms]
constexpr unsigned int LOGGING_DELAY = 30 * 1000; // [ms]
} // namespace Payload
......@@ -35,9 +35,12 @@ constexpr float DEFAULT_TARGET_LON = -8.288992;
#elif defined(ROCCARASO)
constexpr float DEFAULT_TARGET_LAT = 41.809216;
constexpr float DEFAULT_TARGET_LON = 14.055310;
#elif defined(EUROC)
constexpr float DEFAULT_TARGET_LAT = 39.383;
constexpr float DEFAULT_TARGET_LON = -8.27963;
#else // Milan
constexpr float DEFAULT_TARGET_LAT = 41.809216;
constexpr float DEFAULT_TARGET_LON = 14.055310;
constexpr float DEFAULT_TARGET_LAT = 39.383;
constexpr float DEFAULT_TARGET_LON = -8.27963;
#endif
constexpr int WING_UPDATE_PERIOD = 1000; // [ms]
......@@ -53,7 +56,7 @@ constexpr int GUIDANCE_TARGET_ALTITUDE_THRESHOLD = 50; //[m]
// TODO check this parameter preflight
constexpr float KP = 0.4; //[m]
constexpr float KI = 0.08; //[m]
constexpr float ALTITUDE_TRIGGER_DEPLOYMENT_ALTITUDE = 300; // [meters]
constexpr float ALTITUDE_TRIGGER_DEPLOYMENT_ALTITUDE = 400; // [meters]
constexpr int ALTITUDE_TRIGGER_CONFIDENCE = 10; // [number of sample]
constexpr int ALTITUDE_TRIGGER_PERIOD = 100; //[ms]
......
......@@ -80,7 +80,7 @@ bool Radio::start()
ModuleManager& modules = ModuleManager::getInstance();
// Config the transceiver
SX1278Fsk::Config config = {
.freq_rf = 868000000,
.freq_rf = 869000000,
.freq_dev = 50000,
.bitrate = 48000,
.rx_bw = Boardcore::SX1278Fsk::Config::RxBw::HZ_125000,
......
......@@ -406,11 +406,11 @@ State FlightModeManager::state_armed(const Event& event)
{
case EV_ENTRY:
{
Logger::getInstance().start();
logStatus(FlightModeManagerState::ARMED);
Logger::getInstance().stop();
Logger::getInstance().start();
// we log again to ensure the both log have the status logged
logStatus(FlightModeManagerState::ARMED);
// Starts signaling devices and camera
ModuleManager::getInstance().get<Actuators>()->buzzerArmed();
ModuleManager::getInstance().get<Actuators>()->camOn();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment