If you installed 0.51.0, update. Its auto_zero zeroed on the bore line instead of the
line of sight, so every auto-zeroed trajectory shot low by the sight height at the zero range,
and more with distance: with a 1.5 in sight height and a 100 yd zero, 1.5 in low at 100 yd,
7.5 in at 500 yd and 15 in at 1000 yd.
A fix release of the R package on the same engine, ballistics-engine 0.51.0. Four audits
of the R-to-Rust boundary, each checked against the 0.51.0 CLI, found the bugs below. Every
one is fixed and has a regression test. Several fixes change results or names; those are
marked changed.
solve_trajectory(auto_zero = TRUE), calculate_zero_angle() and
calculate_zero_range() zero on the line of sight (muzzle_height + sight_height), as the
CLI does. They used to zero on the bore line (target_height = 0), one sight height low, so
with a 1.5 in sight height a 100 yd zero shot 1.5 in low at 100 yd, 7.5 in low at 500 yd and
15 in low at 1000 yd. target_height now defaults to NULL (the line of sight); 0 still
means the bore line.auto_zero also steers the launch by zero_poi_horizontal_m and sight_offset_lateral_m,
as the CLI's zero does.points gain a drop column: the drop below the line of sight, the CLI's Drop
column and solve_v1()'s drop_m. plot(traj, y = "drop") plots it (it used to plot the
solver-frame height); y = "height" plots the height.solve_v1() returns samples as a data frame, as documented.compute_wez() passed its angles (aim, aim SD, wind direction, its SD, cant)
to the engine in radians where the engine takes degrees. Its automatic zero is now on the
WEZ's own line of sight, at 100 m in metric and 100 yd in imperial, with the WEZ's drag
table, cd_scale and humidity.line_of_sight_height_in, station_speed_of_sound_fps, mach_*_distance_yd.
max_height is in inches, as points$y is.sight_offset_lateral_m,
zero_poi_vertical_m, zero_poi_horizontal_m) stay in that unit; they were scaled as
inches. powder_temp, powder_temp_sensitivity and powder_temp_curve are now converted
from °F and fps.speed, angle, until,
vertical, temperature, pressure and humidity, which were read as km/h, degrees,
°C, hPa and percent while the same names mean other units elsewhere in a call. Use
speed_kmh, angle_deg, until_m, vertical_mps, temperature_c, pressure_hpa,
humidity_percent.confidence_ellipse()$angle_rad is in radians (it was degrees).sight_correction_for_jump() returns radians (it returned MOA);
crosswind_jump_sensitivity() is MOA per m/s (it was per mph); quick_drop_estimate()
returns inches (it returned meters).mc_percentile() takes a probability in [0, 1], as documented now, and
refuses anything else (a percent used to return the maximum).unit_convert() documents the CLI's metric input units (grams, millimetres) and converts
temperature_delta from metric.solve_request_v1(),
estimate_bc(), true_velocity(), multi_observation_truing(), compare_loads(),
hold_curve(), solve_robust_hold(), sight_correction_for_jump() and the card functions
(come_ups(), range_table(), wind_card(), pdf_card()). solve_robust_hold()
defaults to the G1 drag model, as hold-corridor does.run_monte_carlo() and run_monte_carlo_adaptive() fly the CLI's Monte Carlo
geometry (the bore 1.5 m above the ground, the ground at 0) unless the inputs set
muzzle_height or ground_threshold; without it, "mean range" was the range cap.
params$base_wind_speed and base_wind_direction now act (they were ignored).atmosphere it always
evaluated at 15 °C.solve_robust_hold() and hold_curve() treat the documented temperature_c /
pressure_hpa as typed readings, which fly as typed at altitude; they were treated as
omitted and replaced by standard air.fast_integrate(), compute_derivatives(), integrate_trajectory() and the jump offset
apply the omitted-reading rule (ICAO standard air at the altitude); they flew sea-level air.generate_dope_card_pdf() derives the header's density altitude and second pressure figure
from the air it is given.multi_observation_truing(dial_cf =) applies the tracking factor to dialed observations
before the fit, as the CLI does; inch drops never scale, and the factor must be between
0.5 and 1.5.adjustment_display(), compare_loads() and the card functions use a click graduation only
with the clicks unit; with MIL or MOA they printed click counts under that label, and the
clicks unit without a graduation printed MIL. The card functions work around an engine
0.51.0 card-service bug here.solve_v1()$resolved_request is,
and as_resolved_request() marks one built another way. The functions used to guess from
the request's shape, which applied compass wind and QNH pressure zero times or twice.brent_root_find() reported success
and perturbation_bisect_axis() returned NULL."match" means the same coefficients in every function; "log" and "power" are accepted
shear names, and drag models are case-insensitive everywhere.parse_wind_segment(): has_explicit_vertical now says whether a vertical was given, and
the new angle_was_clock says whether the angle was a clock position (the old field
reported that instead).cluster_bc_predict() reports a multiplier of 1 for non-G7 BCs, which the engine leaves
unchanged.BallisticsSolver$effective_drag_coefficient() passes the engine its velocity and speed of
sound; fast_integrate() labels its apex and ground events correctly; sample_trajectory()
measures drop from a level line of sight by default; compute_derivatives() uses the
bullet's own caliber and weight.schema_version = 1 and
counts are accepted.engine_version() and the PDF footer report the engine's version, not the package's.print() of a WEZ lists P(hit) per range.plan_corrections() preferences; inputs the
engine ignores (density_ratio, temperature_k, has_plastic_tip, caliber, vert_m).First release: native R bindings to ballistics-engine 0.51.0.