Skip to content

an improved scurve algoritme with lineair transition stage

License

Notifications You must be signed in to change notification settings

grotius-cnc/scurve-pro

Repository files navigation

scurve-pro

An improved scurve algoritme with lineair transition stage.

scurve-pro - bring your machine to the g-force limits powered by - linux code - c++ template provided by - skynet cyberdyne

There are several types of curve's to use:

  1. Template class traditional lineair curve + scurve.

       scurve_pro_orig.cpp
       scurve_pro_orig.h
    
  2. Template class optimized scurve with lineair transition stage & gain input [curve power]

       scurve_pro_gain.cpp
       scurve_pro_gain.h
    
  3. Header only optimized scurve with with lineair transition stage & gain input [curve power].

       scurve.h  
    

Video of template_4 testing acc & dcc interupts during runtime:

simplescreenrecorder-2022-01-06_12.46.51.mp4

Implemenation example :

      scurve_pro_orig<double>::Result res;

      res=scurve_pro_orig<double>().motion(s, vo, ve, vs, a, at_time, gain);

      std::cout<<"curvel:"<<res.sc_vr<<std::endl;

      at_time+=0.001;

Releases

No releases published

Packages

No packages published