Skip to content

Commit b103ae8

Browse files
committed
SoftStart removed; now enabled permanently
Extremely large majority okay with this feature being removed, and the few against this removal have not posed a valid enough argument for keeping it around, outside of for compatibility with one EUC project, which the Float Package is not meant for.
1 parent f0e5b49 commit b103ae8

File tree

8 files changed

+924
-963
lines changed

8 files changed

+924
-963
lines changed

float/float/conf/conf_default.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185

186186
// Tiltback Speed
187187
#ifndef APPCONF_FLOAT_INPUTTILT_SPEED
188-
#define APPCONF_FLOAT_INPUTTILT_SPEED 20
188+
#define APPCONF_FLOAT_INPUTTILT_SPEED 30
189189
#endif
190190

191191
// Tiltback Smoothing Factor
@@ -233,11 +233,6 @@
233233
#define APPCONF_FLOAT_STARTUP_CLICK_CURRENT 0
234234
#endif
235235

236-
// Enable Soft Start
237-
#ifndef APPCONF_FLOAT_STARTUP_SOFTSTART_ENABLED
238-
#define APPCONF_FLOAT_STARTUP_SOFTSTART_ENABLED 1
239-
#endif
240-
241236
// Enable Simple Start
242237
#ifndef APPCONF_SIMPLESTART_ENABLED
243238
#define APPCONF_SIMPLESTART_ENABLED 0

float/float/conf/confparser.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ int32_t confparser_serialize_float_config(uint8_t *buffer, const float_config *c
5656
buffer_append_float16(buffer, conf->startup_roll_tolerance, 100, &ind);
5757
buffer_append_float16(buffer, conf->startup_speed, 100, &ind);
5858
buffer[ind++] = (uint8_t)conf->startup_click_current;
59-
buffer[ind++] = conf->startup_softstart_enabled;
6059
buffer[ind++] = conf->startup_simplestart_enabled;
6160
buffer[ind++] = conf->startup_pushstart_enabled;
6261
buffer[ind++] = conf->startup_dirtylandings_enabled;
@@ -158,7 +157,6 @@ bool confparser_deserialize_float_config(const uint8_t *buffer, float_config *co
158157
conf->startup_roll_tolerance = buffer_get_float16(buffer, 100, &ind);
159158
conf->startup_speed = buffer_get_float16(buffer, 100, &ind);
160159
conf->startup_click_current = buffer[ind++];
161-
conf->startup_softstart_enabled = buffer[ind++];
162160
conf->startup_simplestart_enabled = buffer[ind++];
163161
conf->startup_pushstart_enabled = buffer[ind++];
164162
conf->startup_dirtylandings_enabled = buffer[ind++];
@@ -253,7 +251,6 @@ void confparser_set_defaults_float_config(float_config *conf) {
253251
conf->startup_roll_tolerance = APPCONF_FLOAT_STARTUP_ROLL_TOLERANCE;
254252
conf->startup_speed = APPCONF_FLOAT_STARTUP_SPEED;
255253
conf->startup_click_current = APPCONF_FLOAT_STARTUP_CLICK_CURRENT;
256-
conf->startup_softstart_enabled = APPCONF_FLOAT_STARTUP_SOFTSTART_ENABLED;
257254
conf->startup_simplestart_enabled = APPCONF_SIMPLESTART_ENABLED;
258255
conf->startup_pushstart_enabled = APPCONF_PUSHSTART_ENABLED;
259256
conf->startup_dirtylandings_enabled = APPCONF_DIRTYLANDINGS_ENABLED;

float/float/conf/confparser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <stdbool.h>
99

1010
// Constants
11-
#define FLOAT_CONFIG_SIGNATURE 1789314336
11+
#define FLOAT_CONFIG_SIGNATURE 3567063650
1212

1313
// Functions
1414
int32_t confparser_serialize_float_config(uint8_t *buffer, const float_config *conf);

float/float/conf/confxml.c

Lines changed: 920 additions & 934 deletions
Large diffs are not rendered by default.

float/float/conf/confxml.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <stdbool.h>
99

1010
// Constants
11-
#define DATA_FLOAT_CONFIG__SIZE 14914
11+
#define DATA_FLOAT_CONFIG__SIZE 14694
1212

1313
// Variables
1414
extern uint8_t data_float_config_[];

float/float/conf/datatypes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ typedef struct {
7979
float startup_roll_tolerance;
8080
float startup_speed;
8181
float startup_click_current;
82-
bool startup_softstart_enabled;
8382
bool startup_simplestart_enabled;
8483
bool startup_pushstart_enabled;
8584
bool startup_dirtylandings_enabled;

float/float/conf/settings.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,20 +1046,6 @@ p, li { white-space: pre-wrap; }
10461046
<suffix> A</suffix>
10471047
<vTx>1</vTx>
10481048
</startup_click_current>
1049-
<startup_softstart_enabled>
1050-
<longName>Enable Soft Start</longName>
1051-
<type>5</type>
1052-
<transmittable>1</transmittable>
1053-
<description>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
1054-
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
1055-
p, li { white-space: pre-wrap; }
1056-
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Roboto'; ; font-weight:400; font-style:normal;&quot;&gt;
1057-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Smoothens startup by ramping in Rate P and Booster, rather than enabling their full effect immediately. This eliminates the initial jerk and momentary nose high riding that could be triggered when mounting quickly. &lt;/p&gt;
1058-
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
1059-
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;If you would like some response/feedback for when the board engages while still having a smooth startup, consider using Startup Click Current in addition to Soft Start.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</description>
1060-
<cDefine>APPCONF_FLOAT_STARTUP_SOFTSTART_ENABLED</cDefine>
1061-
<valInt>1</valInt>
1062-
</startup_softstart_enabled>
10631049
<startup_simplestart_enabled>
10641050
<longName>Enable Simple Start</longName>
10651051
<type>5</type>
@@ -2051,7 +2037,6 @@ p, li { white-space: pre-wrap; }
20512037
<ser>startup_roll_tolerance</ser>
20522038
<ser>startup_speed</ser>
20532039
<ser>startup_click_current</ser>
2054-
<ser>startup_softstart_enabled</ser>
20552040
<ser>startup_simplestart_enabled</ser>
20562041
<ser>startup_pushstart_enabled</ser>
20572042
<ser>startup_dirtylandings_enabled</ser>
@@ -2180,7 +2165,6 @@ p, li { white-space: pre-wrap; }
21802165
<param>startup_speed</param>
21812166
<param>::sep::Start Options</param>
21822167
<param>startup_click_current</param>
2183-
<param>startup_softstart_enabled</param>
21842168
<param>startup_simplestart_enabled</param>
21852169
<param>startup_pushstart_enabled</param>
21862170
<param>startup_dirtylandings_enabled</param>

float/float/float.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1811,7 +1811,7 @@ static void float_thd(void *arg) {
18111811
d->applied_booster_current = 0.01 * booster_current + 0.99 * d->applied_booster_current;
18121812
pid_mod += d->applied_booster_current;
18131813

1814-
if (d->float_conf.startup_softstart_enabled && (d->softstart_pid_limit < d->mc_current_max)) {
1814+
if (d->softstart_pid_limit < d->mc_current_max) {
18151815
pid_mod = fminf(fabs(pid_mod), d->softstart_pid_limit) * SIGN(pid_mod);
18161816
d->softstart_pid_limit += d->softstart_ramp_step_size;
18171817
}

0 commit comments

Comments
 (0)