This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multmatrix([[0, 0, 1, 0], [0, 1, 0, 0], [-1, 0, 0, 0], [0, 0, 0, 1]]) { | |
multmatrix([[1, 0, 0, 0], [0, 0.5, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) { | |
union() { | |
difference() { | |
cylinder($fn = 0, $fa = 12, $fs = 2, h = 2, r1 = 20, r2 = 20, center = true); | |
cylinder($fn = 0, $fa = 12, $fs = 2, h = 3, r1 = 18, r2 = 18, center = true); | |
} | |
multmatrix([[1, 0, 0, -1], [0, 1, 0, -20], [0, 0, 1, -1], [0, 0, 0, 1]]) { | |
cube(size = [2, 40, 2], center = false); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
color([0.25098, 0.25098, 0.25098, 1]) { | |
group() { | |
multmatrix([[1, 0, 0, -22.5], [0, 1, 0, -70], [0, 0, 1, 0], [0, 0, 0, 1]]) { | |
cube(size = [45, 140, 2], center = false); | |
} | |
} | |
} | |
color([0.25098, 0.25098, 0.25098, 1]) { | |
group() { | |
multmatrix([[1, 0, 0, -22.5], [0, 1, 0, -70], [0, 0, 1, 28], [0, 0, 0, 1]]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
//https://en.wikipedia.org/wiki/Topological_sorting#Depth-first_search | |
namespace Brainworks.ClassLib { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react" | |
import { connect, Dispatch } from "react-redux"; | |
import { ModalComponentProps } from "../reducers/datasets" | |
import { AppState } from "../reducers/state" | |
import { renderModal } from "./modalRender" | |
import { registerModalComponent } from "./modalComponents"; | |
export interface ModalErrorWrapperProps<T> extends ModalComponentProps { | |
optionalPropsOrError: T | string | |
dispatch: Dispatch<AppState> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as RssParser from "rss-parser"; | |
//let Parser = require('rss-parser'); | |
let parser = new RssParser(); | |
(async () => { | |
interface ParsedEntity { | |
title: string; | |
link: string; | |
pubDate: string; | |
author: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ThrustLinearization: | |
def __init__(self, thrust_linear): | |
self.thrustLinearization = thrust_linear / 100.0 | |
if self.thrustLinearization != 0.0: | |
self.thrustLinearizationReciprocal = 1.0 / self.thrustLinearization | |
self.thrustLinearizationB = (1.0 - self.thrustLinearization) / (2.0 * self.thrustLinearization) | |
def applyThrustLinearization(self, motorOutput): | |
if self.thrustLinearization != 0.0: | |
#if motorOutput > 0.0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number 1.. run rpm filtering, there is no reason not to use rpm filtering, it removes pretty much | |
all motor noise in the most efficient and lest latency intensive fashion. pretty much any one | |
telling you that you don't need rpm filters is 100% full of sh@t and either can't get it to work on | |
their project or is pushing 32k as a marketing angle. while i personally don't support the jazz | |
maverick project i'd rather see that been used than no rpm. While the dynamic notch is a very fine | |
bit of work, especially now it’s been slowed down a bit, it can only track ONE noise source. For | |
motor noise this is ok when your are flying straight and they are all close to the same frequency, | |
where the dynamic starts to struggle as the only source of motor noise attenuation is when the motor | |
speeds start to deviate or when you start bending props... RPM on the other hand deals with each | |
motors circumstances on a motor by motor basis and in real time ( which is not how the FFt operates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with recursive CustomerTypeTree as | |
( | |
select 1 ALevel, | |
CstType_ID, CstType_Parent, CstType_Position, CstType_Name, | |
Cast(CstType_ID as text) Path, | |
Cast((10000+CstType_Position) as text) || '.' || Cast(CstType_ID as text) Path1 | |
from CustomerTypes | |
where CstType_Parent is null | |
union all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
class simple { | |
int x; | |
char y; | |
public: | |
int getX(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn- process-track-rec | |
[{:keys [trk_utc car_gar_no] :as rec}] | |
(assoc (select-keys rec [:trk_car_id :trk_wpt_id :wpt_name :car_gar_no, :car_gos_no :msr_value :msr_value_rangeidx]) | |
:dt (convert-sql-utc-to-local trk_utc) | |
:gar_no (str car_gar_no))) | |
(defn- process-scales-rec | |
[{:keys [vannum datetime rfid] :as rec}] | |
(let [digits (re-find #"\d+" (or vannum (str "rfid:" rfid) "unknown")) |