v9.1.2-rc5
parent
205fa6afd6
commit
9d932c8025
|
@ -3,7 +3,7 @@
|
|||
# 9.1.2
|
||||
|
||||
* Genesis v1.5 and Express v1.0 firmware updates.
|
||||
* Bug fix for movvement error reporting
|
||||
* Bug fix for movement error reporting
|
||||
* Improved firmware error message reporting
|
||||
* Improved support for gantry mounted tools.
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
defmodule FarmbotCore.Asset.Repo.Migrations.InvalidateLocalPointsGantryMounted do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
execute("UPDATE points SET updated_at = \"1970-11-07 16:52:31.618000\"")
|
||||
end
|
||||
end
|
|
@ -33,10 +33,6 @@ defmodule FarmbotOS.SysCalls.PointLookup do
|
|||
tool = Asset.get_tool(id: id)
|
||||
p = Asset.get_point(tool_id: id)
|
||||
|
||||
IO.puts("======== BEGIN get_toolslot_for_tool(id)")
|
||||
IO.inspect(tool)
|
||||
IO.inspect(p)
|
||||
|
||||
with %{id: ^id} <- tool,
|
||||
%{name: name, x: x, y: y, z: z, gantry_mounted: mounted} <- p do
|
||||
maybe_adjust_coordinates(%{
|
||||
|
@ -52,12 +48,10 @@ defmodule FarmbotOS.SysCalls.PointLookup do
|
|||
end
|
||||
|
||||
defp maybe_adjust_coordinates(%{gantry_mounted: true} = point) do
|
||||
IO.puts("==== IT IS DOING THE CORRECT THING")
|
||||
%{point | x: Movement.get_current_x()}
|
||||
end
|
||||
|
||||
defp maybe_adjust_coordinates(point) do
|
||||
IO.puts("==== Using regular coordinates!")
|
||||
point
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue