Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dshot2 #425

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ class Board

// PWM
virtual void pwm_init(uint32_t refresh_rate, uint16_t idle_pwm) = 0;
virtual void pwm_init(const float *rate, uint32_t channels) = 0; // PTT new
virtual void pwm_disable() = 0;
virtual void pwm_write(uint8_t channel, float value) = 0;
virtual void pwm_write(float *value, uint32_t channels) = 0; //PTT new

// non-volatile memory
virtual void memory_init() = 0;
Expand Down
277 changes: 153 additions & 124 deletions include/mixer.h

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions include/sensors.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,16 @@ typedef struct

enum GNSSFixType
{
GNSS_FIX_TYPE_NO_FIX,
GNSS_FIX_TYPE_FIX,
GNSS_FIX_RTK_FLOAT, // The two RTK fix types are for possible future use.
GNSS_FIX_RTK_FIXED
// GNSS_FIX_TYPE_NO_FIX,
// GNSS_FIX_TYPE_FIX,
// GNSS_FIX_RTK_FLOAT, // The two RTK fix types are for possible future use.
// GNSS_FIX_RTK_FIXED
GNSS_FIX_TYPE_NO_FIX=0,
GNSS_FIX_TYPE_DEAD_RECKONING_ONLY=1,
GNSS_FIX_TYPE_2D_FIX = 2,
GNSS_FIX_TYPE_3D_FIX = 3,
GNSS_FIX_TYPE_GNSS_PLUS_DEAD_RECKONING=4,
GNSS_FIX_TYPE_TIME_FIX_ONLY=5,
};

struct GNSSData
Expand Down
Loading
Loading