Commit graph

13 commits

Author SHA1 Message Date
JojoDevel
59b5ae50a4 Handle float moves and check the number of arguments
DeltaStage sends moves commands as floats which led to occasional hard crashes,
this avoids it.

Incorrect number of arguments to move commands is now handled gracefully
and this will later be extended to more commands.
2023-10-06 03:17:14 +00:00
Filip Ayazi
3745e5740b Add missing board command 2023-03-10 00:49:05 +00:00
Filip Ayazi
1b3e251783 Support 4 motors
Partial support for > 4 motors, needs a clean way of defining wiring.
2023-03-09 00:05:16 +00:00
Filip Ayazi
51b5b670e6 Handle bool defaults on emulated eeprom platform platforms (fixes #5) 2023-03-08 23:53:03 +00:00
Richard Bowman
f0ec05cc20 Initialise EEPROM and save periodically
This should be less of a disaster for the emulated
EEPROM on the pico, but could use some finesse
2023-02-22 17:09:51 +00:00
Richard Bowman
3997d66cde Merge in com port switching from sangaboard v4
I've refactored the use of the serial port, to store the
current serial port in a global variable in a module.
This is set to the most recent port to receive data,
and so we should always be replying to the port
that was used to initiate a command.

If SECONDARY_SERIAL_PORT is not defined, this
should result in no change - if it is, we should be
able to communicate on either port.
2023-02-22 12:05:48 +00:00
Filip Ayazi
0f4e4b5289 Support HW serial in v5, clean up config 2022-10-11 01:00:31 +01:00
Filip Ayazi
351e5a6b7a Illumination support, change core, breaks hw serial
HW serial temporarily broken due to the change in pico core. This core
has a lot more features e.g. easily changing PWM frequency and supports
both pico cores (currently unused)
2022-10-06 23:04:59 +01:00
Filip Ayazi
fde7a90480 Hardware UART comms + partial v5 modules support 2022-09-03 22:04:28 +01:00
Filip Ayazi
1c8e725282 Reduce memory use
* Command definition now uses char * instead of String
 * registered_commands is now an array of pointers to Commands,
   previously this was an array of Command and was allocated to
   MAX_COMMANDS entries which were then overwritten with the module
   provided Commands, so every Command used twice as much memory. This
   saves ~200bytes
 * Several (u)ints are now (u)int8_t

On the nano with all modules included this reduces global RAM use from
1676 bytes to 1237 bytes (from 81.8% to 60.4%).
2021-07-14 01:47:21 +01:00
Filip Ayazi
edd0246cc5 some compatibility fixes and upload instructions 2021-06-02 00:56:23 +01:00
Filip Ayazi
35d969aadd Add endstops, light_sensor, test, many fixes
- Added endstop and light_sensor module
 - Improved configuration by splitting wiring configs to boards.h
 - Added a unit test for argument parsing
 - Fixed many smaller bugs
2021-05-25 01:43:11 +01:00
Filip Ayazi
2f78522064 Initial commit
First and incomplete version of the refactor, stage module works, including aborting moves.
2021-05-21 04:32:21 +01:00