Skip to content

Commit

Permalink
Rebase PR 11 (#13)
Browse files Browse the repository at this point in the history
* Change confusing naming

* Experimentation

* Experimental remote control support

* Modules for hub types

* Implement some motor cmds; use Power everywhere

* Support move hub, remote handset

* support set_rgb on other port id:s

* Support move hub & remote

* Add some IoTypeId:s

* startspeedfordegrees working

* gotoabsposition working

* NotificationMessage to mod - step 1

* Encoder motors example

* Encoder motors example

* Remote control example

* some notes

* reexport futures

* futures-util dependecy

* Move some consts to mod consts

* Change representation of IoTypeId, add note

* Attempt to move macros to mod

* Note on feature availibility

* Move out macros & notificationmessage to mods

* Remove unused imports

* Macros to mod

* some serialisation implementations

* notifcation test-submod to separate file

* remove unused import

* Note: msg serialisation not needed for some types

* hub methods: req portinfo & portmodeinfo

* Impl hub actions

* Hubactions cleanup

* Restore versionum parsing

* Update examples after lib change

* Rem unused

* hub counter

* rem unused

* Add IoTypeId:s

* Rem experimental

* Notes on decimal values

* Note on unknown device

* work on combined sensor mode

* rem unnessecary stuff

* Work on combined mode + speed enum

* example with internal hub devices

* combined sensor mode for motor

* add set port mode for hubs

* Create Remote control example

* Work on RC example

* experimentation

* experimentation

* experimentation

* to read from main

* add status struct

* rem unused dependency

* std-deps to top of file for visibility

* Work on detecting devices

* Work on device detection

* work on device detect, some refactor

* Rem unused code in remote & movehub

* Add empty matcharms for notifications to handle

* Reorganiszed file

* Change hashmap to btreemap

* Interactive commands

* Detect all device-data except mode capability bits

* Update MotorSensorMode

* Add start_power for motors

* closed loop example

* device info example pretty done

* closed loop example

* device detectuin improvment

* notificaton handler setup

* housekeeping

* start on vision sensor

* Rc handlar

* wont be ignored

* No errors

* work on channels & closed loop example

* Generic  hub implementation

* rm specialized hub mods

* Move around stuff

* move use-statements to top

* start on Enable from kind

* New device/command design

* work on devices

* alternative init

* Altenative init

* rename item

* start add tests

* get_from_kind working

* SetRgbColorNo working

* Get BT handles later

* Array of LEGO colors

* Error message

* Attribs

* Hubled example

* Hubled example wt rainbow

* update template

* Work on notification processing

* Work on notification processing

* work on notification handling

* Easy sensor setup working 8bit only

* Also with get_from_port

* Important notes on Value Format

* Commit before change to PortValueSingleFormat

* Try to get [i16] from [i8]; compiles not correct

* sensor parsing ok, started on modes consts

* Change some naming

* rm outdated examples

* Cleanup

* Cleanup

* Cleanup

* Update run-motors example

* Add some pub use for ease of use

* Rm unnessecary mut declarations

* Update tank-remote example

* Remove deprecated stuff, update pu-utils

* Cleanup

* More cleanup

* RC setup function + handler

* Rem old stuff

* Add wait

* RC support

* updated send-function

* Some organisation

* Clean up use-blocks

* Filled in some more modes

* Examples

* Cleanup

* Clean up setup_hub(), copy of scan() for experment

* Notes on IoDevice

* Rem old stuff, update args design

* Factor out getting handles

* Attempt to get scan-stream working

* Rename and cleanup device-info example

* Check hub type

* Rem unneeded wait

* rem unneeded use

* Clean up remote-control example

* errorcheck on pvs; check cabable b4 req possibleco

* Don't enable notifications here

* Convenience functions & template

* add io_multi_from_kind()

* Visionsensor trait

* Update examples

* updates

* Move out Definition + clean up device rt checks

* move definition mod

* Move iodevice, remove some warnings

* rem unused feature attrib

* differentiate examples & exoperiments

* small updates

* Documentation

* Update

* add connected_io_mut

* add interactive mode set

* support detachedio-event

* Handle attachVirtualIo event, can't get device yet

* AttachVirtualIo working

* rename dir

* rem superfluous line

* PR message draft

* example update

* presetencoder-command working

* update example

* TILT serialisation, startpower2 is subcommand

* Catch uncommon error

* Vision sensor color output working

* Synchro is irrelevant here

* Visionsensor color test working

* Change motor

* display impls

* update colors

* HubMutex type to pub

* Interactive visionsensor example working

* vision sensor example update

* update visionsensor example

* Cleanup

* cross-comp stuff

* Cross-compilation stuff

* Hub messages support + channel

* ignore vs code workspace

* cleanup before main merge

* cleanup before main merge

* Clear warnings

* Clear warnings

* Error handling

* Clear warnings

* Rm dev-only workspace member from main

* fmt

* Clippy fixes

* More clippy fixes

* No clippy warnings

* Start fix for misused Power enum

* Finish Power-issue; add gotoabs and fortime-cmds

* Work on fortime & gotoabs, not working

* gotoabs working

* fmt

* io_from... doesn't need to be async

* Update examples to sync io_from...

* experimental sync cmds

* sync send-fn seems ok

* no locks over await in io_event

* some remaining fns now sync

* Work on combined sensor mode for motor

* Work on combined mode for motors

* Combined mode works better with pos as primary

* error check

* verbosity idea

* Add forwarding of  outputcommandfeedback

* Create iodevice with bt-tokens

* Create iodevice with bt-tokens

* Cancellation

* Acess properties

* Go back to async send

* clippy

* rm sync waits

* show attached

* Add scanfilter

* rem old code

* .

* device_trait macro

* rem non-macro device trait-code

* attempt: use basic methods & reduce code duplicati

* use basic trait to improve DRY

* rename fn

* .

* Use basic trait to improve DRY

* rem unused imports

* .

* cleanup

* rem deprecated code

* clippy

* Support acc/dectime, startup & completion

* rem leftover debugmsg

* Review comments

* clippy

---------

Co-authored-by: joakim000 <[email protected]>
  • Loading branch information
sciguy16 and joakim000 authored Jan 7, 2024
1 parent 53ffd5f commit 9c49207
Show file tree
Hide file tree
Showing 55 changed files with 6,427 additions and 2,119 deletions.
3 changes: 3 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
lego-powered-up.code-workspace
Loading

0 comments on commit 9c49207

Please sign in to comment.