Skip to content
Snippets Groups Projects
Commit a4ff1d77 authored by Alberto Nidasio's avatar Alberto Nidasio
Browse files

[Deployment] Updated cutter actuation time

parent e1df8e89
No related branches found
No related tags found
No related merge requests found
Pipeline #4178 passed
...@@ -36,7 +36,7 @@ static TIM_TypeDef* const ABK_SERVO_TIMER = TIM10; ...@@ -36,7 +36,7 @@ static TIM_TypeDef* const ABK_SERVO_TIMER = TIM10;
constexpr Boardcore::TimerUtils::Channel ABK_SERVO_PWM_CH = constexpr Boardcore::TimerUtils::Channel ABK_SERVO_PWM_CH =
Boardcore::TimerUtils::Channel::CHANNEL_1; Boardcore::TimerUtils::Channel::CHANNEL_1;
// TODO: Change rotation with min and max // TODO: Fix rotation value
constexpr float ABK_SERVO_ROTATION = 66.4; // [deg] AirBrakes without end stop constexpr float ABK_SERVO_ROTATION = 66.4; // [deg] AirBrakes without end stop
// constexpr float ABK_SERVO_ROTATION = 65; // [deg] AirBrakes with end stop // constexpr float ABK_SERVO_ROTATION = 65; // [deg] AirBrakes with end stop
constexpr float ABK_SERVO_MIN_PULSE = 1405; // [deg] constexpr float ABK_SERVO_MIN_PULSE = 1405; // [deg]
...@@ -49,7 +49,6 @@ static TIM_TypeDef* const DPL_SERVO_TIMER = TIM4; ...@@ -49,7 +49,6 @@ static TIM_TypeDef* const DPL_SERVO_TIMER = TIM4;
constexpr Boardcore::TimerUtils::Channel DPL_SERVO_PWM_CH = constexpr Boardcore::TimerUtils::Channel DPL_SERVO_PWM_CH =
Boardcore::TimerUtils::Channel::CHANNEL_2; Boardcore::TimerUtils::Channel::CHANNEL_2;
// TODO: Change rotation with min and max
constexpr float DPL_SERVO_ROTATION = 23; // [deg] constexpr float DPL_SERVO_ROTATION = 23; // [deg]
constexpr float DPL_SERVO_MIN_PULSE = 900; // [us] constexpr float DPL_SERVO_MIN_PULSE = 900; // [us]
constexpr float DPL_SERVO_MAX_PULSE = 900 + 10 * DPL_SERVO_ROTATION; // [us] constexpr float DPL_SERVO_MAX_PULSE = 900 + 10 * DPL_SERVO_ROTATION; // [us]
......
...@@ -29,7 +29,7 @@ namespace DeploymentConfig ...@@ -29,7 +29,7 @@ namespace DeploymentConfig
{ {
constexpr int OPEN_NC_TIMEOUT = 5 * 1000; // [ms] constexpr int OPEN_NC_TIMEOUT = 5 * 1000; // [ms]
constexpr int CUT_DURATION = 50; // [ms] constexpr int CUT_DURATION = 500; // [ms]
} // namespace DeploymentConfig } // namespace DeploymentConfig
......
...@@ -28,8 +28,6 @@ using namespace Boardcore; ...@@ -28,8 +28,6 @@ using namespace Boardcore;
int main() int main()
{ {
miosix::Thread::sleep(10 * 1000);
SPIBus spi2(SPI2); SPIBus spi2(SPI2);
UBXGPSSpi gps{spi2, sensors::gps::cs::getPin(), UBXGPSSpi gps{spi2, sensors::gps::cs::getPin(),
UBXGPSSpi::getDefaultSPIConfig(), 5}; UBXGPSSpi::getDefaultSPIConfig(), 5};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment