• Wed 2020.03.04

    I have no experience with SmartiBot nor dpad.

    Hello Steve @user104966 and thank you for posting your code block.

    'there are alot more details on the Redditt sub-group, not sure of the best pace to post this'

    It would be nice to understand what details were attempted to be conveyed. Please post link so that we may follow with that understanding.

    'I have downloaded modified wall avoidance software from the web'

    Again, please post the referenced web link.

    'Button 1 on the app when pressed calls load()'
    'it does not run automatically'

    Looking over the code module I find neither a load() function or an onInit() function.

    'At this point because the RAM has been cleared'

    Am I to conclude that reset() was entered into the Left Hand console side of the WebIDE just prior to this statement?

    'Have I misunderstood what reset() does?'

    http://www.espruino.com/Reference#l__glo­bal_reset

    It might be, as it isn't entirely clear what is to be attempted at this point. If the intent is to wipe out memory then reset(1) is what you are after. If the intent is to re-initialize the position variables, then a separate function might be one solution to perform that task. From the two 'When I press and release' text instructions, the motors start and then stop. Function stopWallAvoid() stops updating and halts the motors. Code should remain in memory. dump() to reveal. What is expected at that point?

    http://www.espruino.com/Reference#t_l__g­lobal_dump


    'when released calls reset()'

    There isn't a reference to the reset() function and either button functions.

    Is it possible that ALL the code is not in the attached file?

About

Avatar for Robin @Robin started