mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 13:55:40 +08:00
changed IR_PITCH_NEUTRAL_DEFAULT and IR_ROLL_NEUTRAL_DEFAULT to radians
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
</dl_settings>
|
||||
|
||||
<dl_settings NAME="Infrared">
|
||||
<dl_setting MAX="15" MIN="-15" STEP="1" VAR="infrared.roll_neutral" shortname="roll neutral" module="subsystems/sensors/infrared" param="IR_ROLL_NEUTRAL_DEFAULT" unit="rad" alt_unit="deg" alt_unit_coef="57.3"/>
|
||||
<dl_setting MAX="0.5" MIN="-0.5" STEP="1" VAR="infrared.roll_neutral" shortname="roll neutral" module="subsystems/sensors/infrared" param="IR_ROLL_NEUTRAL_DEFAULT" unit="rad" alt_unit="deg" alt_unit_coef="57.3"/>
|
||||
<dl_setting MAX="0.5" MIN="-0.3" STEP="0.01" VAR="infrared.pitch_neutral" shortname="pitch neutral" module="subsystems/sensors/infrared" param="IR_PITCH_NEUTRAL_DEFAULT" unit="rad"/>
|
||||
</dl_settings>
|
||||
</dl_settings>
|
||||
|
||||
@@ -38,8 +38,8 @@ struct Infrared infrared;
|
||||
/** \brief Initialisation of \a ir structure
|
||||
*/
|
||||
void infrared_struct_init(void) {
|
||||
infrared.roll_neutral = RadOfDeg(IR_ROLL_NEUTRAL_DEFAULT);
|
||||
infrared.pitch_neutral = RadOfDeg(IR_PITCH_NEUTRAL_DEFAULT);
|
||||
infrared.roll_neutral = IR_ROLL_NEUTRAL_DEFAULT;
|
||||
infrared.pitch_neutral = IR_PITCH_NEUTRAL_DEFAULT;
|
||||
|
||||
infrared.correction_left = IR_CORRECTION_LEFT;
|
||||
infrared.correction_right = IR_CORRECTION_RIGHT;
|
||||
|
||||
@@ -143,8 +143,8 @@ module Make(A:Data.MISSION) = struct
|
||||
let maximum_airspeed = try float_value misc_section "MAXIMUM_AIRSPEED" with _ -> nominal_airspeed *. 1.5
|
||||
let max_power = try float_value misc_section "MAXIMUM_POWER" with _ -> 5. *. maximum_airspeed *. weight
|
||||
|
||||
let roll_neutral_default = try rad_of_deg (float_value infrared_section "ROLL_NEUTRAL_DEFAULT") with _ -> 0.
|
||||
let pitch_neutral_default = try rad_of_deg (float_value infrared_section "PITCH_NEUTRAL_DEFAULT") with _ -> 0.
|
||||
let roll_neutral_default = try float_value infrared_section "ROLL_NEUTRAL_DEFAULT" with _ -> 0.
|
||||
let pitch_neutral_default = try float_value infrared_section "PITCH_NEUTRAL_DEFAULT" with _ -> 0.
|
||||
|
||||
|
||||
let vert_ctrl_section = try section "VERTICAL CONTROL" with _ -> Xml.Element("",[],[])
|
||||
|
||||
Reference in New Issue
Block a user