Skip to content

Commit

Permalink
[airframes] Updated calibrations of rotating wing drones
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis-Wijngaarden authored and fvantienen committed Feb 27, 2024
1 parent f44444c commit edff4bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions conf/airframes/tudelft/rot_wing_v3d.xml
Expand Up @@ -192,7 +192,7 @@
<servo no="2" name="MOTOR_BACK" min="0" neutral="1000" max="8191"/>
<servo no="3" name="MOTOR_LEFT" min="0" neutral="1000" max="8191"/>
<servo no="4" name="MOTOR_PUSH" min="0" neutral="0" max="8191"/>
<servo no="5" name="ROTATION_MECH" min="-2842" neutral="1053" max="4947"/>
<servo no="5" name="ROTATION_MECH" min="-2375" neutral="-172" max="2031"/>
</servos>

<!-- CAN BUS 1 command outputs-->
Expand All @@ -207,7 +207,7 @@
<servo no="1" name="BMOTOR_RIGHT" min="0" neutral="1000" max="8191"/>
<servo no="2" name="BMOTOR_BACK" min="0" neutral="1000" max="8191"/>
<servo no="3" name="BMOTOR_LEFT" min="0" neutral="1000" max="8191"/>
<servo no="5" name="BROTATION_MECH" min="-2842" neutral="1053" max="4947"/>
<servo no="5" name="BROTATION_MECH" min="-2375" neutral="-172" max="2031"/>
</servos>

<!-- CAN BUS 2 command outputs-->
Expand Down
2 changes: 1 addition & 1 deletion conf/airframes/tudelft/rot_wing_v3e.xml
Expand Up @@ -197,7 +197,7 @@

<!-- CAN BUS 1 command outputs-->
<servos driver="Uavcan1Cmd">
<servo no="6" name="SERVO_ELEVATOR" min="8191" neutral="8191" max="-4349"/>
<servo no="6" name="SERVO_ELEVATOR" min="5400" neutral="5400" max="-4349"/>
<servo no="7" name="SERVO_RUDDER" min="-5225" neutral="0" max="5225"/>
</servos>

Expand Down
4 changes: 2 additions & 2 deletions conf/airframes/tudelft/rot_wing_v3g.xml
Expand Up @@ -68,7 +68,7 @@
</module>
<module name="airspeed" type="ms45xx_i2c">
<define name="MS45XX_I2C_DEV" value="i2c2"/>
<define name="MS45XX_PRESSURE_SCALE" value="1.9077609"/>
<define name="MS45XX_PRESSURE_SCALE" value="1.65"/>
<define name="USE_AIRSPEED_LOWPASS_FILTER" value="TRUE"/>
<define name="MS45XX_LOWPASS_TAU" value="0.15"/>
<define name="AIRSPEED_MS45XX_SEND_ABI" value="1"/>
Expand Down Expand Up @@ -343,7 +343,7 @@

<section name="IMU" prefix="IMU_">
<define name="ACCEL_CALIB" value="{{.abi_id=20, .calibrated={.neutral=true, .scale=true, .filter=true},.neutral={-19,0,28}, .scale={{1537,43219,6232},{157,4410,641}}, .filter_sample_freq=1127, .filter_freq=30}, {.abi_id=21, .calibrated={.neutral=true, .scale=true},.neutral={-1,2,33}, .scale={{21914,8531,5489},{4477,1738,1120}}}, {.abi_id=22, .calibrated={.neutral=true, .scale=true},.neutral={-47,0,3}, .scale={{17288,29444,25808},{3531,6031,5293}}}}"/>
<define name="MAG_CALIB" value="{{.abi_id=5, .calibrated={.neutral=true, .scale=true, .rotation=true},.neutral={-1,-2,22}, .scale={{8241,27895,4777},{15881,55537,10618}}, .body_to_sensor={{0,16384,0,16384,0,0,0,0,-16384}}}}"/>
<define name="MAG_CALIB" value="{{.abi_id=5, .calibrated={.neutral=true, .scale=true, .rotation=true},.neutral={3163,2783,1623}, .scale={{25833,28413,12237},{45868,51206,22472}}, .body_to_sensor={{0,16384,0,16384,0,0,0,0,-16384}}}}"/>
<define name="GYRO_CALIB" value="{{.abi_id=20, .calibrated={.filter=true}, .filter_sample_freq=1127, .filter_freq=30}}"/>

<!-- Define axis in hover frame -->
Expand Down
6 changes: 3 additions & 3 deletions conf/airframes/tudelft/rot_wing_v3h.xml
Expand Up @@ -68,7 +68,7 @@
</module>
<module name="airspeed" type="ms45xx_i2c">
<define name="MS45XX_I2C_DEV" value="i2c2"/>
<define name="MS45XX_PRESSURE_SCALE" value="1.9077609"/>
<define name="MS45XX_PRESSURE_SCALE" value="1.65"/>
<define name="USE_AIRSPEED_LOWPASS_FILTER" value="TRUE"/>
<define name="MS45XX_LOWPASS_TAU" value="0.15"/>
<define name="AIRSPEED_MS45XX_SEND_ABI" value="1"/>
Expand Down Expand Up @@ -197,7 +197,7 @@

<!-- CAN BUS 1 command outputs-->
<servos driver="Uavcan1Cmd">
<servo no="6" name="SERVO_ELEVATOR" min="8191" neutral="8191" max="-6102"/>
<servo no="6" name="SERVO_ELEVATOR" min="1200" neutral="1200" max="-8191"/>
<servo no="7" name="SERVO_RUDDER" min="-5225" neutral="0" max="5225"/>
</servos>

Expand Down Expand Up @@ -343,7 +343,7 @@

<section name="IMU" prefix="IMU_">
<define name="ACCEL_CALIB" value="{{.abi_id=20, .calibrated={.neutral=true, .scale=true, .filter=true},.neutral={-19,0,11}, .scale={{36573,4111,12385},{3737,420,1269}}, .filter_sample_freq=1130, .filter_freq=30}, {.abi_id=21, .calibrated={.neutral=true, .scale=true},.neutral={-1,-5,24}, .scale={{21205,53606,11977},{4326,10919,2440}}}, {.abi_id=22, .calibrated={.neutral=true, .scale=true},.neutral={-63,-14,21}, .scale={{32790,18121,37501},{6697,3698,7659}}}}"/>
<define name="MAG_CALIB" value="{{.abi_id=5, .calibrated={.neutral=true, .scale=true, .rotation=true},.neutral={-1,-2,22}, .scale={{8241,27895,4777},{15881,55537,10618}}, .body_to_sensor={{0,16384,0,16384,0,0,0,0,-16384}}}}"/>
<define name="MAG_CALIB" value="{{.abi_id=5, .calibrated={.neutral=true, .scale=true, .rotation=true},.neutral={2658,2634,1176}, .scale={{20085,2361,16413},{34633,4348,28912}}, .body_to_sensor={{0,16384,0,16384,0,0,0,0,-16384}}}}"/>
<define name="GYRO_CALIB" value="{{.abi_id=20, .calibrated={.filter=true}, .filter_sample_freq=1130, .filter_freq=30}}"/>

<!-- Define axis in hover frame -->
Expand Down

0 comments on commit edff4bc

Please sign in to comment.