Skip to content

Commit bdc0ebb

Browse files
committed
feature(param_logic): start using "MCU Series" to make parameter value decisions
1 parent 26daecb commit bdc0ebb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ardupilot_methodic_configurator/configuration_steps_ArduCopter.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,14 @@
245245
"mandatory_text": "100% mandatory (0% optional)",
246246
"auto_changed_by": "",
247247
"forced_parameters": {
248-
"INS_LOG_BAT_OPT": { "New Value": 4, "Change Reason": "Logs measured data both before and after the filters for Filter Review Webtool usage" },
249248
"LOG_BITMASK": { "New Value": 145118, "Change Reason": "Log all but fast att, Nav, Mission, OF, camera, fast IMU, raw, IMU, video stabilization. These are not needed now" },
250249
"LOG_FILE_DSRMROT": { "New Value": 1, "Change Reason": "One .bin log file per flight, not per battery/reboot" }
251250
},
251+
"derived_parameters": {
252+
"INS_LOG_BAT_MASK": { "New Value": "1 if 'F4' in vehicle_components['Flight Controller']['Specifications']['MCU Series'] or vehicle_components['Propellers']['Specifications']['Diameter_inches'] < 16 else 0", "Change Reason": "Use acc and gyro batch logging on F4 processors, gyro raw logging on others" },
253+
"INS_LOG_BAT_OPT": { "New Value": "4 if 'F4' in vehicle_components['Flight Controller']['Specifications']['MCU Series'] or vehicle_components['Propellers']['Specifications']['Diameter_inches'] < 16 else 0", "Change Reason": "Use pre and post filters acc and gyro batch logging on F4 processors, pre-post gyro raw logging on others" },
254+
"INS_RAW_LOG_OPT": { "New Value": "0 if 'F4' in vehicle_components['Flight Controller']['Specifications']['MCU Series'] or vehicle_components['Propellers']['Specifications']['Diameter_inches'] < 16 else 9", "Change Reason": "Use pre and post filters acc and gyro batch logging on F4 processors, pre-post gyro raw logging on others" }
255+
},
252256
"old_filenames": ["13_logging.param"]
253257
},
254258
"15_motor.param": {
@@ -457,6 +461,7 @@
457461
"forced_parameters": {
458462
"ATC_RATE_FF_ENAB": { "New Value": 0, "Change Reason": "test the stabilization loops independent of the input shaping" },
459463
"INS_LOG_BAT_MASK": { "New Value": 0, "Change Reason": "IMU batch logging no longer required, notch filter setup is complete, this reduces processor load and log file size" },
464+
"INS_RAW_LOG_OPT": { "New Value": 0, "Change Reason": "Gyro raw logging no longer required, notch filter setup is complete, this reduces processor load and log file size" },
460465
"LOG_BITMASK": { "New Value": 145118, "Change Reason": "Disable fast harmonic notch logging" }
461466
},
462467
"old_filenames": ["26_evaluate_the_aircraft_tune_ff_disable.param"]

0 commit comments

Comments
 (0)