V2 behavior
Hi,
tried to setup the V2 for test on a corexy on due/radds.(used dual x axis template from github sample systems)
did not really succeed as watchdog triggers (without visible reasons).
another thing is that io_input_inverted_pullup don´t work correct (missing ! in io_input.h line 95)
had to divide x and y steps by 2 compared to v1.0.3
but major problem is watchdog... any idea?
Comments
I have no corexy system so no tests myself.
My guess for the jitter are rounding errors. The positions are computed for short intervals by interpolating start/end. There will always be a tiny variance to the left or right of the ideal move and converting this floating point to steps might cause the jitter. What is your xy resolution? I think the higher the more probable it might get.
What is if your move is slightly off the 45° e.g.
G1 X0 Y0
G1 X100 Y101
does it still jitter or more keep the direction?
Will also do some tests with cartesian. But there it would be 0 and 90° so one axis is 0 and multiplying with 0 gives no rounding errors for that axis, so that is why I do not see it I guess.
that gives the next planned target position in global coordinates. Then
fast8_t nextMotorIdx = 1 - lastMotorIdx;
Gets last integer position and updates next integer position. Looking into it I see in PrinterTypeCoreXYZ.cpp
could be the problem. First rounding to steps and then interpolate might be the wrong order. Can you replace it with
this postpones integer conversion to last time. I think this is the more correct approach.
But it is better described here:
https://docfirmwarev2.repetier.com/config/motors
You are now free to have any number of fans. Just connect a PWM output of the fan with a control logic. Example
IO_OUTPUT(IOCoolerFan1, HEATER_3_PIN)
IO_PWM_SOFTWARE(CoolerFan, IOCoolerFan1, 0)
COOLER_MANAGER_SENSOR(ExtruderCooler, TempBoard, CoolerFan, 30, 50, 40, 255)
This creates a software PWM and enables it at 30° with 40of255 and increases it to 100% at 50°C. With the modular concept you can also use hardware PWM with one of the supported pins. Temperature can be any module reporting temperature. You can make one for board temperature just like for extruders.
Will describe the new modules like COOLER_MANAGER_SENSOR soon in the doc.
There is no cooler for any stepper on also it will be very easy to write one. Will write one tomorrow. Printer has a flag for all steppers disabled that I can use for this. Apart from this it is more a copy of an existing just with fixed pwm frequencies.
I think I will not distinguish the modes any more. I think laser will just become another tool type that can be activated. I'm also thinking about adjusting PWM with speed now that I update speed in discreete intervals. We also have hardware PWM for 9 pins on due. I can write a sample implementation at the weekend for you to test. My laser is on 8 bit system that does not compile with V2 at the moment.