Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MicroCART
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Distributed Autonomous Networked Control Lab
MicroCART
Merge requests
!88
Bigquad
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bigquad
bigquad
into
develop
Overview
0
Commits
3
Pipelines
0
Changes
5
Merged
Grant Giansanti
requested to merge
bigquad
into
develop
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Compare
develop
version 1
7dcf3bc5
1 year ago
develop (base)
and
version 1
latest version
7dcf3bc5
3 commits,
1 year ago
version 1
7dcf3bc5
3 commits,
1 year ago
5 files
+
74
−
125
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
crazyflie_software/crazyflie-firmware-2021.06/src/drivers/interface/motors.h
+
12
−
0
Options
@@ -116,6 +116,18 @@
#define MOTORS_BL_POLARITY TIM_OCPolarity_Low
#endif
// ------------- uCart 23 Drone ---------------------------
#define BLMC_PERIOD_uCart23 0.0025 // 2.5ms = 400Hz
#define MOTORS_HIGH_PERIOD_ZERO_uCart23 0.001 // 1ms for zero throttle
#define MOTORS_BL_PWM_PRESCALE_RAW_uCart23 (uint32_t)((TIM_CLOCK_HZ/0xFFFF) * BLMC_PERIOD_uCart23 + 1) // +1 is to not end up above 0xFFFF in the end
#define MOTORS_BL_PWM_CNT_FOR_PERIOD_uCart23 (uint32_t)(TIM_CLOCK_HZ * BLMC_PERIOD_uCart23 / MOTORS_BL_PWM_PRESCALE_RAW_uCart23)
#define MOTORS_BL_PWM_CNT_FOR_HIGH_uCart23 (uint32_t)(TIM_CLOCK_HZ * MOTORS_HIGH_PERIOD_ZERO_uCart23 / MOTORS_BL_PWM_PRESCALE_RAW_uCart23)
#define MOTORS_BL_PWM_PERIOD_uCart23 MOTORS_BL_PWM_CNT_FOR_PERIOD_uCart23
#define MOTORS_BL_PWM_PRESCALE_uCart23 (uint16_t)(MOTORS_BL_PWM_PRESCALE_RAW_uCart23 - 1)
#define MOTORS_BL_POLARITY_uCart23 TIM_OCPolarity_Low
// ---------------------------------------------------------
#define NBR_OF_MOTORS 4
// Motors IDs define
#define MOTOR_M1 0
Loading