Rick Carlino
6ffbbe93d5
🎉 It works!
2020-05-11 13:37:29 -05:00
Rick Carlino
4a31b34bf4
Inline stuff for now (debugging)
2020-05-09 14:37:24 -05:00
Rick Carlino
e1b3cec859
Revert changes to command.ex
2020-05-07 14:03:37 -05:00
Rick Carlino
d99d93c0b9
Fix missing variable problem
2020-05-07 11:43:48 -05:00
Rick Carlino
0ccb44ff41
Update changlog, revert unneeded changes.
2020-05-06 19:13:34 -05:00
Rick Carlino
539f19c360
Add `reource_type` and `resource_id` to point lookup (required for variable MARK AS)
2020-04-30 14:07:21 -05:00
Rick Carlino
75bbeb7281
Continue MARK AS updates...
2020-04-29 20:44:31 -05:00
Rick Carlino
816da6128a
TODO: test `update_resource` block that contains variables.
2020-04-28 17:43:55 -05:00
Rick Carlino
856e19147e
WIP
2020-04-17 10:33:51 -05:00
Rick Carlino
f0b0ff10b0
Remove diag dumps
2020-02-04 14:11:17 -06:00
Rick Carlino
5722bea421
Huge formatting update (sorry)
2020-01-17 09:58:53 -06:00
Connor Rigby
f50c945232
Add new sequence logs to execute block
2019-10-31 14:40:33 -07:00
Connor Rigby
2eb94818a6
Add logs to sequence iteration
2019-10-31 14:40:32 -07:00
Connor Rigby
29bff57501
Fix missing command for calibrate and home
2019-10-24 14:03:11 -07:00
connor rigby
30d035fb88
Fix compiler tests
2019-10-22 14:19:32 -07:00
connor rigby
433af34e6a
Add ability to use loops in farm_events and regimens
2019-10-22 14:19:32 -07:00
Connor Rigby
a5022eed27
Factor out CeleryScript compiler into multiple modules
...
This should hopefully allow for easier to follow error messages as it
removes all elixir macro "magic"
2019-10-22 14:19:32 -07:00
Connor Rigby
1ff2a7d153
Implement `every_point` and `point_group` Celery nodes
2019-10-22 14:19:32 -07:00
Connor Rigby
96574f2033
Implement `resource_update` celery node
2019-09-24 12:47:08 -07:00
Connor Rigby
8a816ba1f4
Change if and read_pin to function the same as v7
...
this prevents the possibility of reading a sensor and it changing
by the time an if statement is executed
2019-09-13 16:03:34 -07:00
Gabriel Burnworth
85465f3044
add missing op log cases
2019-09-13 16:03:34 -07:00
Connor Rigby
46d259202c
Add sequence start/complete logs to regimen and farm_events
2019-09-13 16:03:34 -07:00
Connor Rigby
d22a390505
Update `if` logs to have more contextual information
2019-09-13 16:03:33 -07:00
Connor Rigby
cf2877c76e
Ensure firmware/rpc logs always dispatch
2019-09-13 16:03:33 -07:00
Connor Rigby
f400b2746f
Add new RPC for `toggle_pin`
...
This was previously implemented as a "macro" that just expanded
`toggle_pin` to a series of `read_pin` -> `write_pin` -> `read_pin` this
lead to three logs instead of just one. The implementation is still
mostly the same, but now there is less logging.
Also factored all pin control into it's own module
2019-09-13 16:03:32 -07:00
Connor Rigby
209ded96cb
Add Lua helpers for updating and getting resources
2019-09-13 16:03:32 -07:00
Connor Rigby
a242cce830
Add new log type for assertion logs
2019-09-13 16:03:32 -07:00
Connor Rigby
f756302fe6
Add option to continue and not recover from assertion
2019-09-13 16:03:32 -07:00
Connor Rigby
528acd119c
Fix execute block inside lua expression block
2019-09-13 16:03:32 -07:00
Gabriel Burnworth
2619586102
Change `update_farmware` fields to match corpus
2019-09-13 16:03:32 -07:00
Connor Rigby
d3081fcc56
Change field names of `assert` to match corpus
2019-09-13 16:03:31 -07:00
Connor Rigby
7e1ceaf7be
Implement new AST: `assert`.
...
This is a new AST that will allow executing a
simple expression and conditionally pass/fail
and cleanup when it completes.
2019-09-13 16:03:31 -07:00
Connor Rigby
fcadeebe6e
Add `update_farmware` rpc back
2019-09-13 16:03:31 -07:00
connor rigby
3231651b5f
Add :set_pin_io_mode rpc back to known rpcs
2019-09-13 16:03:30 -07:00
gabrielburnworth
62a101dc9c
Fix some farmware bugs
2019-09-13 16:03:27 -07:00
Connor Rigby
6c59d54244
Update logs for starting/completing a sequence
2019-09-13 16:03:26 -07:00
connor rigby
55533675f5
Reenable sequence init and sequence complete logs
...
Sort of a hack, but store some metadata about a sequence in the AST
format, and if it exists, log it
2019-09-13 16:03:26 -07:00
Connor Rigby
a160d6a41b
Fix factory_resetting the arduino-firmware
...
* Adds `api_migrated` field to FirmwareConfig
* Changes `factory_reset()` syscall to be `factory_reset(package)`
2019-09-13 16:03:25 -07:00
connor rigby
2a884f3b41
Fix typo in `If`
2019-09-13 16:03:25 -07:00
connor rigby
e7fed8838d
Update home all log
2019-09-13 16:03:25 -07:00
connor rigby
5ca92090a1
Update more logs
...
* Any float is not formatted very specifically
* if the remainder in the decimal is `0`, don't display decimal
* if the remainder is not zero, truncate to only one decimal place
* Write/Read pin
* yeah that got messy
2019-09-13 16:03:25 -07:00
connor rigby
ce3480a0f5
Add log for relative movement
2019-09-13 16:03:25 -07:00
connor rigby
d2239d76c3
Try add log channels more aggressively
2019-09-13 16:03:24 -07:00
connor rigby
059af23faf
Add parens to movement logs
2019-09-13 16:03:24 -07:00
connor rigby
28b43bebd3
Update more logs for clarity
...
* Add log for things that enumerate all axis
* change `homing` to `going home`..
2019-09-13 16:03:24 -07:00
connor rigby
0cbb4ba784
Fix named pins causing celeryscript errors
...
NamedPin values were encoded as tuples. This changes it to
pattern matchable structs, and implements a `to_string` behaviour
for those structs
2019-09-13 16:03:24 -07:00
Connor Rigby
c92c79347f
Add back step logs
2019-09-13 16:03:24 -07:00
connor rigby
672c1cc5e6
Fix CeleryScript Compiler typo in find_home/1
2019-09-13 16:03:23 -07:00
Connor Rigby
00d0897672
Dry up celery_script compilation
...
This adds much more type checking and error
handling in the compiled celery_script.
Also removes the hack/shortcut in the StubSysCalls
module.
2019-09-13 16:03:23 -07:00
Connor Rigby
3d036aded6
Fix zero expecting a speed paramater
2019-09-13 16:03:20 -07:00