mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #32 from TobiasRaeder/clamp-values
Clamp values on sensors y axis
This commit is contained in:
commit
082baeba96
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ function initGraphHelpers(selector, sampleNumber, heightDomain) {
|
|||
range([0, width]);
|
||||
|
||||
helpers.heightScale = d3.scale.linear().
|
||||
clamp(true).
|
||||
domain(heightDomain || [1, -1]).
|
||||
range([height, 0]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue