-
Notifications
You must be signed in to change notification settings - Fork 43
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
ESC Setup / programming (bidirectional telemetry / forward programming) - implemented for HW5 ESCs #114
Conversation
…additional responses, pack param payload for MSP editor
…ols like HW5 that need to see the higher resolution timer
* master: Improve baro filtering defaults Improve rescue gain and time defaults
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor tweaks needed
src/main/sensors/esc_sensor.c
Outdated
@@ -1986,8 +2218,9 @@ static bool tribDecode(timeMs_t currentTimeMs) | |||
} | |||
} | |||
|
|||
static bool tribCrankUncSetup(timeMs_t currentTimeMs) | |||
static bool tribCrankUncSetup(timeMs_t currentTimeUs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be timeUs_t
src/main/sensors/esc_sensor.c
Outdated
typedef bool (*rrfsmStartCallbackPtr)(timeMs_t currentTimeMs); // return true to continue w/ default initialization (if in doubt return true) | ||
typedef bool (*rrfsmDecodeCallbackPtr)(timeMs_t currentTimeMs); // return true if frame was decoded successfully | ||
typedef bool (*rrfsmCrankCallbackPtr)(timeMs_t currentTimeMs); // return true to continue w/ default loop (advanced, if in doubt return true) | ||
typedef bool (*rrfsmStartCallbackPtr)(timeMs_t currentTimeUs); // return true to continue w/ default initialization (if in doubt return true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be timeUs_t
src/main/sensors/esc_sensor.c
Outdated
typedef bool (*rrfsmCrankCallbackPtr)(timeMs_t currentTimeMs); // return true to continue w/ default loop (advanced, if in doubt return true) | ||
typedef bool (*rrfsmStartCallbackPtr)(timeMs_t currentTimeUs); // return true to continue w/ default initialization (if in doubt return true) | ||
typedef bool (*rrfsmDecodeCallbackPtr)(timeUs_t currentTimeUs); // return true if frame was decoded successfully | ||
typedef bool (*rrfsmCrankCallbackPtr)(timeMs_t currentTimeUs); // return true to continue w/ default loop (advanced, if in doubt return true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeUs_t
} | ||
|
||
static void pl5BuildNextReq() | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(void)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SMH - give me a minute :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeUs_t and fn(void) usage addressed
great - thanks |
* hd - pl5 - hw5 / pl5 ported to rrfsm * hd - pl5 - added: device info & get params req, extended decoder for additional responses, pack param payload for MSP editor * hd - pl5 - enter MSP editor from tele * hd - pl5 - added writeparams req, resp, err * ESC Setup - param - OOB status (restart needed) and device identification * hd - pl5 - added OOB restart + identification, cleanup * pl5 - pre-pr code cosmetics, removed deprecated hw5 * pl5 - rrfsm - change callbacks to accept Us (vs Ms) to support protocols like HW5 that need to see the higher resolution timer * pl5 - more pre-pr code cosmetics, removed debug/test * pl5 - pr - timeUs_t and fn(void) usage addressed
ESC setup / programming (forward programming) using the Tx via bidirectional telemetry #101
Complete for HobbyWing V5
Configuration
Code
HW5 support