Skip to content

Instantly share code, notes, and snippets.

%
O40390(AT3 10-TEETH PULLEY-ROTARY TABLE)
(PULLEY FOR ROBOTIC TEAM)
(CREATED 09/26/2019)
(STARTED )(12/03/19)(11:55AM)
(FINISHED)(12/04/19)(01:05PM)
(CYCLE TIME)(20 MIN)
( X ZERO SET AT THE FIXTURE FACE )
(Z=-0.925 AT THE LEFT FACE OF THE PART)

Running 6 udrive motors with master board at differnet communication frequencies

Date: Thursday, 28 Nov 2019 Author: Julian Viereck

This is running the example.cpp from the master-board with 6 udrive boards. With the stock firmware configuration, we were not able to achieve a stable communication loop. When switching to 2 retries and lower the SPI communication bus speed from 8 to 6 kHz, a stable (zero error) communication was established.

The exact code (modifications to the firmware and the example.cpp) are on this branch.

With retry 2, 8 kHz communication

// Based on example from: https://doc.rust-lang.org/book/drop.html
struct HasDrop<'a> {
id: isize,
next: Option<&'a mut HasDrop<'a>>
}
// Implementing the |Drop| trait causes the errors shown below.
impl<'a> Drop for HasDrop<'a> {
fn drop(&mut self) {
<?xml version="1.0" encoding="UTF-8" ?>
<config
Name="Xcode Clang++"
ShortName="Clang++"
Manufacturer="Apple"
Version=""
Language="C++"
Priority="A"
Location="$XCODE_DIR" >
<Details
@jviereck
jviereck / index.md
Created June 8, 2015 06:56
Julian's Daily American Journal - edition 07 Jun 15

This is day 5 in the Silicon Valley for me, it is Sunday evening for me here and I am sitting outside, looking at the sky, stars, sitting in a Hängematte. Once your eyes get used to seeing possibilities there are so many opportunities. Once you get used to work at big scale you stop thinking about small problems on the way and concentrate on what is actually important and, assuming it works out, what might be the issues with the initial idea.

Thinking in opportunities is the default here in the Silicon Valley. When pitching a few ideas to people back in Europe I sometimes got the reaction of “wow, but you know what’s a lot of work to be done” - creating a sort of negative response and making me less certain about the idea. What happens if you pitch the same idea to someone in the Silicon Valley? “Yes, I believe you can do this and it will yield a nice paper, but here is the problem with this because I have done something similar already”.

With that, what’s my closing of the “first (half) week” in “The Valle

(As followup to this Tweet.)

Question: Given the following definition of the Counter class:

// BASED on example in Readme.md at
// https://github.com/gaearon/redux/blob/f8f512b229357c84bbef40099c52e011737f0373/README.md

import React, { PropTypes } from 'react';
import { increment, decrement } from './actions/CounterActions';
caffe(75094,0x7fff73f54300) malloc: *** error for object 0x7fc86352b728: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
*** Aborted at 1429299055 (unix time) try "date -d @1429299055" if you are using GNU date ***
PC: @ 0x7fff860cd282 __pthread_kill
*** SIGABRT (@0x7fff860cd282) received by PID 75094 (TID 0x7fff73f54300) stack trace: ***
@ 0x7fff8bc34f1a _sigtramp
@ 0x1 (unknown)
@ 0x7fff8d7b5b73 abort
@ 0x7fff8f54ae06 szone_error
@ 0x7fff8f53f301 tiny_malloc_from_free_list
// Small example to demonstrate updating / manipulate the CSS styles using JS.
class MyZoomableContainer extends React.CSSComponent {
constructor() {
this.state = { fontSize: 14 };
}
// Increase or decrease the font size. The changes will get applied later
// when the component will rerender.
decrFontSize() { this.setState({fontSize: this.state.fontSize - 1 }); }
➜ move git:(master) ✗ rustc new_line_error.rs
new_line_error.rs:23:22: 23:26 error: use of moved value: `v.id`
new_line_error.rs:23 println!("{:?}", v.id);
^~~~
note: in expansion of format_args!
<std macros>:2:43: 2:76 note: expansion site
<std macros>:1:1: 2:78 note: in expansion of println!
new_line_error.rs:23:5: 23:28 note: expansion site
new_line_error.rs:22:9: 22:10 note: `v` moved here because it has type `&mut NonCopyableStruct`, which is moved by default
new_line_error.rs:22 let w = v;
➜ mozilla_ch git:(master) curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /Users/jviereck/develop/mozilla_ch/composer.phar
Use it: php composer.phar
➜ mozilla_ch git:(master) php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file