Helicopter params API - SkyroverTech/SkyroverCF GitHub Wiki

Type Parameter Name Description
All good, valid response + data 200
int16_t _servo1_pos Angular location of swash servo #1
int16_t _servo2_pos Angular location of swash servo #2
int16_t _servo3_pos Angular location of swash servo #3
int16_t _servo4_pos Angular location of swash servo #4
int16_t _roll_max Maximum roll angle of the swash plate in centi-degrees
int16_t _pitch_max Maximum pitch angle of the swash plate in centi-degrees
int16_t _collective_min Lowest possible servo position for the swashplate
int16_t _collective_max Highest possible servo position for the swashplate
int16_t _collective_mid Swash servo position corresponding to zero collective pitch (or zero lift for Assymetrical blades)
int16_t _collective_upper_trim_min Lowest possible servo4 position for upper rotor pitch trim
int16_t _collective_upper_trim_max Highest possible servo4 position for upper rotor pitch trim
int8_t _servo_manual Pass radio inputs directly to servos during set-up through mission planner
int16_t _phase_angle Phase angle correction for rotor head. If pitching the swash forward induces a roll, this can be correct the problem
int16_t _collective_yaw_effect Feed-forward compensation to automatically add rudder input when collective pitch is increased. Can be positive or negative depending on mechanics.
int8_t _rsc_ramp_time Time in seconds for the output to the main rotor's ESC to reach full speed
int8_t _rsc_runup_time Time in seconds for the main rotor to reach full speed. Must be longer than _rsc_ramp_time
int8_t _tail_ramp_time Time in seconds for the output to the main rotor's ESC to reach full speed
int16_t _land_collective_min Minimum collective when landed or landing
float _rollFactor[4] Roll factor of each servo for calculating roll output of rotors
float _pitchFactor[4] Pitch factor of each servo for calculating pitch output of rotors
float _collectiveFactor[4] Collective Pitch factor of each servo for rotors
float _collectiveFactorUpper[4] Collective Pitch factor of each servo for upper rotor
float _roll_scaler scaler to convert roll input from radio (i.e. -4500 ~ 4500) to max roll range
float _pitch_scaler scaler to convert pitch input from radio (i.e. -4500 ~ 4500) to max pitch range
float _collective_scalar collective scalar to convert pwm form (i.e. 0 ~ 1000) passed in to actual servo range (i.e 1250~1750 would be 500)
float _collective_scalar_manual collective scalar to reduce the range of the collective movement while collective is being controlled manually (i.e. directly by the pilot)
int16_t _collective_out actual collective pitch value. Required by the main code for calculating cruise throttle
int16_t _collective_mid_pwm collective mid parameter value converted to pwm form (i.e. 0 ~ 1000)
int16_t _rotor_desired latest desired rotor speed from pilot
float _rotor_out latest output sent to the main rotor or an estimate of the rotors actual speed (whichever is higher) (0 ~ 1000)
float _rsc_ramp_increment the amount we can increase the rotor output during each iteration
float _rsc_runup_increment the amount we can increase the rotor's estimated speed during each iteration
float _rotor_speed_estimate estimated speed of the main rotor (0~1000)
float _tail_ramp_increment the amount we can increase the rotor output during each iteration
float _tail_out latest output sent to the main rotor or an estimate of the rotors actual speed (whichever is higher) (0 ~ 1000)
Invalid API end-point (bad url) 404
Invalid Arguments in the POST body 400
Invalid content-type 415
Unsupported media type 415
Invalid API version (through Accept header) 406
Backend error (backend API down, etc) 500