@jjlmoya/utils-drones 1.23.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/category/index.ts +2 -0
- package/src/entries.ts +4 -0
- package/src/tests/diacritics_density.test.ts +8 -8
- package/src/tests/locale_completeness.test.ts +2 -2
- package/src/tests/tool_validation.test.ts +2 -2
- package/src/tool/drone-battery-c-rating-calculator/i18n/es.ts +49 -49
- package/src/tool/fpv-drone-thrust-to-weight-ratio/bibliography.astro +6 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/bibliography.ts +18 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/component.astro +203 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/controller.ts +240 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/dom-views.ts +148 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/entry.ts +27 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/evaluator.ts +30 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/fpv-drone-thrust-to-weight-ratio.css +404 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/de.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/en.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/es.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/fr.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/id.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/it.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/ja.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/ko.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/nl.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/pl.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/pt.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/ru.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/sv.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/tr.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/i18n/zh.ts +208 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/index.ts +10 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/logic.test.ts +93 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/logic.ts +147 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/seo.astro +16 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/storage.ts +19 -0
- package/src/tool/fpv-drone-thrust-to-weight-ratio/ui.ts +58 -0
- package/src/tools.ts +3 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DroneTwrInputs } from './logic';
|
|
2
|
+
|
|
3
|
+
const STORAGE_KEY = 'jjl_drone_twr_inputs';
|
|
4
|
+
|
|
5
|
+
export function loadSavedInputs(): Partial<DroneTwrInputs> {
|
|
6
|
+
try {
|
|
7
|
+
const raw = localStorage.getItem(STORAGE_KEY);
|
|
8
|
+
if (!raw) return {};
|
|
9
|
+
return JSON.parse(raw) as Partial<DroneTwrInputs>;
|
|
10
|
+
} catch {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function saveInputs(inputs: DroneTwrInputs): void {
|
|
16
|
+
try {
|
|
17
|
+
localStorage.setItem(STORAGE_KEY, JSON.stringify(inputs));
|
|
18
|
+
} catch {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface FpvDroneThrustToWeightRatioUI {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
presetsHeader: string;
|
|
6
|
+
customPreset: string;
|
|
7
|
+
whoop1sPreset: string;
|
|
8
|
+
freestyle35Preset: string;
|
|
9
|
+
freestyle5Preset: string;
|
|
10
|
+
longrange7Preset: string;
|
|
11
|
+
cinelifter8Preset: string;
|
|
12
|
+
specsHeader: string;
|
|
13
|
+
auwGramsLabel: string;
|
|
14
|
+
motorCountLabel: string;
|
|
15
|
+
thrustPerMotorLabel: string;
|
|
16
|
+
propellerSizeLabel: string;
|
|
17
|
+
propellerPitchLabel: string;
|
|
18
|
+
bladeCountLabel: string;
|
|
19
|
+
blade2Option: string;
|
|
20
|
+
blade3Option: string;
|
|
21
|
+
blade4Option: string;
|
|
22
|
+
throttleStickHeader: string;
|
|
23
|
+
throttleStickLabel: string;
|
|
24
|
+
snapIdleLabel: string;
|
|
25
|
+
snapHoverLabel: string;
|
|
26
|
+
snapCruiseLabel: string;
|
|
27
|
+
snapPunchLabel: string;
|
|
28
|
+
telemetryHeader: string;
|
|
29
|
+
twrRatioLabel: string;
|
|
30
|
+
hoverThrottleLabel: string;
|
|
31
|
+
currentThrustLabel: string;
|
|
32
|
+
instantGForceLabel: string;
|
|
33
|
+
zeroToHundredLabel: string;
|
|
34
|
+
recommendedCamAngleLabel: string;
|
|
35
|
+
windResistanceLabel: string;
|
|
36
|
+
totalMaxThrustLabel: string;
|
|
37
|
+
maxPitchAngleLabel: string;
|
|
38
|
+
tuningHeader: string;
|
|
39
|
+
tpaRecommendationLabel: string;
|
|
40
|
+
dynamicIdleLabel: string;
|
|
41
|
+
propwashRiskLabel: string;
|
|
42
|
+
tierUnderpoweredTitle: string;
|
|
43
|
+
tierUnderpoweredDesc: string;
|
|
44
|
+
tierCinematicTitle: string;
|
|
45
|
+
tierCinematicDesc: string;
|
|
46
|
+
tierFreestyleTitle: string;
|
|
47
|
+
tierFreestyleDesc: string;
|
|
48
|
+
tierAcroProTitle: string;
|
|
49
|
+
tierAcroProDesc: string;
|
|
50
|
+
tierRacingExtremeTitle: string;
|
|
51
|
+
tierRacingExtremeDesc: string;
|
|
52
|
+
hudThrustCurveTitle: string;
|
|
53
|
+
hudHoverMarker: string;
|
|
54
|
+
hudCurrentStickMarker: string;
|
|
55
|
+
hudGForceLabel: string;
|
|
56
|
+
hudTiltAngleLabel: string;
|
|
57
|
+
hudVectorPowerLabel: string;
|
|
58
|
+
}
|
package/src/tools.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { GPS_COORDINATES_CONVERTER_TOOL } from './tool/gps-coordinates-converter
|
|
|
5
5
|
import { DRONE_POWER_ANALYZER_TOOL } from './tool/drone-power-analyzer/index';
|
|
6
6
|
import { GSD_FLIGHT_PLANNER_TOOL } from './tool/gsd-flight-planner/index';
|
|
7
7
|
import { DRONE_BATTERY_C_RATING_CALCULATOR_TOOL } from './tool/drone-battery-c-rating-calculator/index';
|
|
8
|
+
import { FPV_DRONE_THRUST_TO_WEIGHT_RATIO_TOOL } from './tool/fpv-drone-thrust-to-weight-ratio/index';
|
|
8
9
|
import type { ToolDefinition } from './types';
|
|
9
10
|
|
|
10
11
|
export const ALL_TOOLS: ToolDefinition[] = [
|
|
@@ -14,6 +15,7 @@ export const ALL_TOOLS: ToolDefinition[] = [
|
|
|
14
15
|
DRONE_POWER_ANALYZER_TOOL,
|
|
15
16
|
GSD_FLIGHT_PLANNER_TOOL,
|
|
16
17
|
DRONE_BATTERY_C_RATING_CALCULATOR_TOOL,
|
|
18
|
+
FPV_DRONE_THRUST_TO_WEIGHT_RATIO_TOOL,
|
|
17
19
|
];
|
|
18
20
|
|
|
19
21
|
export {
|
|
@@ -23,4 +25,5 @@ export {
|
|
|
23
25
|
DRONE_POWER_ANALYZER_TOOL,
|
|
24
26
|
GSD_FLIGHT_PLANNER_TOOL,
|
|
25
27
|
DRONE_BATTERY_C_RATING_CALCULATOR_TOOL,
|
|
28
|
+
FPV_DRONE_THRUST_TO_WEIGHT_RATIO_TOOL,
|
|
26
29
|
};
|