Rick Carlino
38c0fcb5dc
Verbiage
2020-05-01 18:34:09 -05:00
Rick Carlino
816da6128a
TODO: test `update_resource` block that contains variables.
2020-04-28 17:43:55 -05:00
Rick Carlino
fefd444aa0
Elock / unlock verbiage
2020-04-13 16:04:48 -05:00
Rick Carlino
8d70e8c454
Elock / unlock verbiage
2020-04-13 15:49:53 -05:00
Rick Carlino
643bbe8475
Yellow log when rebooting firmware.
2020-04-13 15:46:30 -05:00
Rick Carlino
afec9d13bd
Change name of syscall to find_points_via_group
2020-02-28 16:30:02 -06:00
Rick Carlino
f0b0ff10b0
Remove diag dumps
2020-02-04 14:11:17 -06:00
Rick Carlino
a2694185a7
v9.0.3-rc3
2020-01-27 09:03:14 -06:00
Rick Carlino
1620c422cc
TODO: Debug cause of :transport firmware error.
2020-01-25 17:01:11 -06:00
Rick Carlino
feae00c8db
TODO: FIX NETWORK_LAYER CONFIG STUFF
2020-01-22 12:40:42 -06:00
Rick Carlino
7e5738f883
[UNSTABLE] 42.1% Partial removal of :mox, some tests failing though
2020-01-22 11:41:43 -06:00
Rick Carlino
cb6c83e368
Update formatting
2020-01-21 13:03:47 -06:00
Rick Carlino
66bc2cc3b0
Stub out reconciler usage in SysCall module
2020-01-21 11:55:36 -06:00
Rick Carlino
8e495409e3
Run formatter
2020-01-21 09:35:08 -06:00
Rick Carlino
fc24a780da
Create `reconciler()` helper method in preparation for mock addition
2020-01-21 09:30:06 -06:00
Rick Carlino
5722bea421
Huge formatting update (sorry)
2020-01-17 09:58:53 -06:00
Rick Carlino
845e69ce7e
Re-enable set_servo_angle
...
* set_servo_angle works.
* Tests for set_servo_angle in FarmbotCeleryScript.Syscalls
2019-12-27 11:45:26 -06:00
Connor Rigby
6cb47d43aa
Add docs for generating app specific docs
2019-12-18 13:01:20 -08:00
Connor Rigby
fa15763c85
Update docs for farmbot_os OTP app
2019-12-17 14:25:20 -08:00
Connor Rigby
ec56ebaf74
Add telemetry to the rest of the app
...
More things will be added in the future.
Metrics are collected from bot state because
the amount of messages sent by every bot would
make datadog charge us a lot of money
2019-10-31 14:00:08 -07:00
Connor Rigby
1ff2a7d153
Implement `every_point` and `point_group` Celery nodes
2019-10-22 14:19:32 -07:00
Connor Rigby
b0ea0df183
Refactor all movement sys_calls into their own file
2019-10-01 09:13:42 -07:00
Connor Rigby
96574f2033
Implement `resource_update` celery node
2019-09-24 12:47:08 -07:00
connor rigby
c03e62bdfe
Add "really fast blink" for syncing led
2019-09-17 12:22:36 -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
Connor Rigby
659f95461e
Fix movement commands retrying on estop
2019-09-13 16:03:34 -07:00
Connor Rigby
eb2c7fb874
Add movement retries to sys_calls
...
This will cause farmbot to retry a movement up to 5 times before
actually considering a movement failed
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
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
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
df39a7c289
Make sure FarmwareEnv is updated in the API after an update
2019-09-13 16:03:31 -07:00
connor rigby
05eeb74fc8
Re-implement set_pin_io_mode
2019-09-13 16:03:30 -07:00
connor rigby
405da18d3d
Let `set_user_env` create a FarmwareEnv asset
...
FarmwareEnvs are mirrored on the bot state already
2019-09-13 16:03:30 -07:00
Connor Rigby
77c5015a23
Fix BoxLed4
2019-09-13 16:03:30 -07:00
connor rigby
e199cb8a90
Add LED handler for green (sync status)
2019-09-13 16:03:29 -07:00
Gabriel Burnworth
9469d47f9f
Fix shutdown not powering off
2019-09-13 16:03:27 -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
4e2e8dde69
Tweak digital sensor logs to not include on/off
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
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
e7ea334ab2
Change Preloading and Caching to use the same system as auto_sync
...
* preloader and reconciler no longer use a transaction
* This will prevent rolling back a failed sync, but allows farmbot to
continue operating if a sync does fail
* usage of the preloader updated to reflect this
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
c7f509d7a3
Lookup pins before read_pin
...
This will create sensor_values even if `NamedPin`
is not used
2019-09-13 16:03:22 -07:00
Connor Rigby
5ed88ccb40
Expand `read_pin` and `write_pin`
...
* `read_pin` and `write_pin` for `BoxLed`
* `read_pin` of a `Sensor` will create a `SensorValue`
2019-09-13 16:03:22 -07:00