mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
try to eliminate floating point debug prints
for some reason the loader has a lot of code devoted to formatting debug prints of floating point numbers. In the version of the loader that's being built for production I think we shouldn't need any of this?
This commit is contained in:
parent
c58edf9598
commit
a21dd3572d
2 changed files with 3 additions and 3 deletions
|
|
@ -624,9 +624,9 @@ pub fn early_init() -> u32 {
|
||||||
use crate::platform::cramium::homography::*;
|
use crate::platform::cramium::homography::*;
|
||||||
if let Some(h) = find_homography(src_f, dst_f) {
|
if let Some(h) = find_homography(src_f, dst_f) {
|
||||||
if let Some(h_inv) = h.try_inverse() {
|
if let Some(h_inv) = h.try_inverse() {
|
||||||
crate::println!("{:?}", h_inv);
|
// crate::println!("{:?}", h_inv);
|
||||||
let h_inv_fp = matrix3_to_fixp(h_inv);
|
let h_inv_fp = matrix3_to_fixp(h_inv);
|
||||||
crate::println!("{:?}", h_inv_fp);
|
// crate::println!("{:?}", h_inv_fp);
|
||||||
|
|
||||||
// apply homography to generate a new buffer for processing
|
// apply homography to generate a new buffer for processing
|
||||||
let mut aligned = [0u8; QR_WIDTH * QR_HEIGHT];
|
let mut aligned = [0u8; QR_WIDTH * QR_HEIGHT];
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ fn least_squares_fit(points: &[Point], axis: Axis) -> (f32, f32) {
|
||||||
fn point_from_hv_lines(hline: &LineDerivation, vline: &LineDerivation) -> Option<Point> {
|
fn point_from_hv_lines(hline: &LineDerivation, vline: &LineDerivation) -> Option<Point> {
|
||||||
if let Some((m1, b1)) = hline.equation {
|
if let Some((m1, b1)) = hline.equation {
|
||||||
if let Some((m2v, b2v)) = vline.equation {
|
if let Some((m2v, b2v)) = vline.equation {
|
||||||
crate::println!("h: {}, {} | v: {}, {}", m1, b1, m2v, b2v);
|
// crate::println!("h: {}, {} | v: {}, {}", m1, b1, m2v, b2v);
|
||||||
if m2v != 0.0 {
|
if m2v != 0.0 {
|
||||||
let m2 = 1.0 / m2v;
|
let m2 = 1.0 / m2v;
|
||||||
let b2 = -b2v / m2v;
|
let b2 = -b2v / m2v;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue