Skip to content

Instantly share code, notes, and snippets.

Avatar

Sönke J. Peters speters

View GitHub Profile
@speters
speters / pramod.ranade.c
Last active Dec 22, 2015 — forked from tmpvar/pramod.ranade.c
See "Linear motion control without the math" by Pramod Ranade in http://www.nxtbook.com/nxtbooks/cmp/esd0409/index.php?startid=23 (Embedded System Design Vol 22, #4, April 2009) and http://picprog.strongedge.net/step_prof/step-profile.html
View pramod.ranade.c
/*
step.c
Program to verify new algorithm for linear acceleration.
Author: Pramod Ranade <pramod.ranade@spjsystems.com>
*/
#include <stdio.h>
#if defined(_WIN32) || defined(_WIN64)
#include <io.h>
#endif